Use pkg-config for libpcsclite linkage flags
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>
This commit is contained in:
parent
e797959b86
commit
3f6c02f29a
1 changed files with 1 additions and 2 deletions
|
@ -1011,7 +1011,6 @@ ifdef CONFIG_PCSC
|
||||||
# PC/SC interface for smartcards (USIM, GSM SIM)
|
# PC/SC interface for smartcards (USIM, GSM SIM)
|
||||||
CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
|
CFLAGS += -DPCSC_FUNCS -I/usr/include/PCSC
|
||||||
OBJS += ../src/utils/pcsc_funcs.o
|
OBJS += ../src/utils/pcsc_funcs.o
|
||||||
# -lpthread may not be needed depending on how pcsc-lite was configured
|
|
||||||
ifdef CONFIG_NATIVE_WINDOWS
|
ifdef CONFIG_NATIVE_WINDOWS
|
||||||
#Once MinGW gets support for WinScard, -lwinscard could be used instead of the
|
#Once MinGW gets support for WinScard, -lwinscard could be used instead of the
|
||||||
#dynamic symbol loading that is now used in pcsc_funcs.c
|
#dynamic symbol loading that is now used in pcsc_funcs.c
|
||||||
|
@ -1020,7 +1019,7 @@ else
|
||||||
ifdef CONFIG_OSX
|
ifdef CONFIG_OSX
|
||||||
LIBS += -framework PCSC
|
LIBS += -framework PCSC
|
||||||
else
|
else
|
||||||
LIBS += -lpcsclite -lpthread
|
LIBS += $(shell $(PKG_CONFIG) --libs libpcsclite)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue