[PATCH v2] Use pkg-config for libpcsclite linkage flags

Andrej Shadura andrew.shadura at collabora.co.uk
Thu Oct 21 03:26:00 PDT 2021


From: Reinhard Tartler <siretart at tauware.de>

Using pkg-config for libpcsclite can provide more accurate linking
flags.

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

---
 wpa_supplicant/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 271f2aab3118..cb13a12afe59 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1020,7 +1020,7 @@ else
 ifdef CONFIG_OSX
 LIBS += -framework PCSC
 else
-LIBS += -lpcsclite -lpthread
+LIBS += $(shell $(PKG_CONFIG) --libs libpcsclite)
 endif
 endif
 endif
-- 
2.33.0



More information about the Hostap mailing list