From: Reinhard Tartler Date: Thu, 21 Oct 2021 10:26:00 +0000 (+0200) Subject: Use pkg-config for libpcsclite linkage flags X-Git-Tag: hostap_2_10~117 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f6c02f29a0448a11f54983357a058b929e33026;p=thirdparty%2Fhostap.git Use pkg-config for libpcsclite linkage flags Using pkg-config for libpcsclite can provide more accurate linking flags. Signed-off-by: Reinhard Tartler Signed-off-by: Andrej Shadura --- diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index fa707dc41..737f7af9c 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -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