]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Use pkg-config for libpcsclite linkage flags
authorReinhard Tartler <siretart@tauware.de>
Thu, 21 Oct 2021 10:26:00 +0000 (12:26 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 22 Oct 2021 14:04:33 +0000 (17:04 +0300)
Using pkg-config for libpcsclite can provide more accurate linking
flags.

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Signed-off-by: Andrej Shadura <andrew.shadura@collabora.co.uk>
wpa_supplicant/Makefile

index fa707dc41e7b50d49dc0ffbc9c28ef28b7f8cc9e..737f7af9c4be08f0473f88710b7d1b3e987ffab2 100644 (file)
@@ -1011,7 +1011,6 @@ ifdef CONFIG_PCSC
 # PC/SC interface for smartcards (USIM, GSM SIM)
 CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
 OBJS += ../src/utils/pcsc_funcs.o
-# -lpthread may not be needed depending on how pcsc-lite was configured
 ifdef CONFIG_NATIVE_WINDOWS
 #Once MinGW gets support for WinScard, -lwinscard could be used instead of the
 #dynamic symbol loading that is now used in pcsc_funcs.c
@@ -1020,7 +1019,7 @@ else
 ifdef CONFIG_OSX
 LIBS += -framework PCSC
 else
-LIBS += -lpcsclite -lpthread
+LIBS += $(shell $(PKG_CONFIG) --libs libpcsclite)
 endif
 endif
 endif