]> mj.ucw.cz Git - pciutils.git/commit
libpci: Define STATIC_ALIAS for DLL Windows builds
authorPali Rohár <pali@kernel.org>
Sat, 24 Feb 2024 15:12:26 +0000 (16:12 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 24 Feb 2024 19:47:05 +0000 (20:47 +0100)
commit0e48f9b7af7c4e9a76092db62a1a4d777f59c170
tree5242300d0c0b3e4d7b734cb6869017b1e97af9a0
parent26d05a62e4babea0fa364fd1690f8b9f5792bfc1
libpci: Define STATIC_ALIAS for DLL Windows builds

Windows builds for versioned symbols use inline asm .set directive which in
some cases makes x86-64 LTO compiler to drop the referenced value. Define
STATIC_ALIAS macro with VERSIONED_ABI (used) attribute which forces LTO
compiler to not drop the symbol from the final DLL library.
lib/internal.h