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