summaryrefslogtreecommitdiff
path: root/debian/patches/01_use_pkg-config_for_pcsc-lite_module.patch
blob: fab625755df47d1ff6cc7b6f0406da02caa9278d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Use pkg-config for libpcsclite linkage flags
 At least in debian, we can rely on pkg-config being available and
 returning more accurate ldflags.
Author: Reinhard Tartler <siretart@tauware.de>
---
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -913,7 +913,7 @@ ifdef CONFIG_NATIVE_WINDOWS
 #dynamic symbol loading that is now used in pcsc_funcs.c
 #LIBS += -lwinscard
 else
-LIBS += -lpcsclite -lpthread
+LIBS += $(shell $(PKG_CONFIG) --libs libpcsclite)
 endif
 endif