diff mbox series

[v2] Use pkg-config for libpcsclite linkage flags

Message ID 20211021102600.227836-1-andrew.shadura@collabora.co.uk
State Accepted
Headers show
Series [v2] Use pkg-config for libpcsclite linkage flags | expand

Commit Message

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

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen Oct. 22, 2021, 5:43 p.m. UTC | #1
On Thu, Oct 21, 2021 at 12:26:00PM +0200, Andrej Shadura wrote:
> Using pkg-config for libpcsclite can provide more accurate linking
> flags.

Thanks, applied.
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