diff mbox series

Use pkg-config for libpcsclite linkage flags

Message ID 20211021100900.219182-1-andrew.shadura@collabora.co.uk
State Superseded
Headers show
Series Use pkg-config for libpcsclite linkage flags | expand

Commit Message

Andrej Shadura Oct. 21, 2021, 10:09 a.m. UTC
From: Reinhard Tartler <siretart@tauware.de>

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

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

Patch

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