HS 2.0R2: Allow custom libcurl linkage for hs20-osu-client

In case someone is compiling their own libcurl and wants to link it
statically, for instance, the new CUST_CURL_LINKAGE parameter can be
used to override the default -lcurl argument.

Signed-off-by: Ben Greear <greearb@candelatech.com>
This commit is contained in:
Ben Greear 2015-03-26 17:39:48 -04:00 committed by Jouni Malinen
parent 53f4ed68ee
commit 2e7a228878

View file

@ -67,7 +67,13 @@ OBJS += ../../src/crypto/sha256-internal.o
CFLAGS += $(shell xml2-config --cflags) CFLAGS += $(shell xml2-config --cflags)
LIBS += $(shell xml2-config --libs) LIBS += $(shell xml2-config --libs)
# Allow static/custom linking of libcurl.
ifdef CUST_CURL_LINKAGE
LIBS += ${CUST_CURL_LINKAGE}
else
LIBS += -lcurl LIBS += -lcurl
endif
CFLAGS += -DEAP_TLS_OPENSSL CFLAGS += -DEAP_TLS_OPENSSL
LIBS += -lssl -lcrypto LIBS += -lssl -lcrypto