From 3f6c02f29a0448a11f54983357a058b929e33026 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Thu, 21 Oct 2021 12:26:00 +0200 Subject: [PATCH] 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 --- wpa_supplicant/Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.47.3