From 838e3e223ad82892a6218bd21ca2d2c58014e562 Mon Sep 17 00:00:00 2001 From: Reinhard Tartler Date: Sat, 14 May 2022 03:18:56 +0800 Subject: [PATCH] Use pkg-config for libpcsclite linkage flags At least in debian, we can rely on pkg-config being available and returning more accurate ldflags. Gbp-Pq: Name 01_use_pkg-config_for_pcsc-lite_module.patch --- wpa_supplicant/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index f1384d5..98ac987 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -1017,7 +1017,7 @@ else ifdef CONFIG_OSX LIBS += -framework PCSC else -LIBS += -lpcsclite -lpthread +LIBS += $(shell $(PKG_CONFIG) --libs libpcsclite) endif endif endif