From: Ben Greear Date: Thu, 26 Mar 2015 21:39:48 +0000 (-0400) Subject: HS 2.0R2: Allow custom libcurl linkage for hs20-osu-client X-Git-Tag: hostap_2_5~906 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e7a228878b325e8a10c5f506fa6f561a5b2a13b;p=thirdparty%2Fhostap.git 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 --- diff --git a/hs20/client/Makefile b/hs20/client/Makefile index ca67b54da..94cd5f14d 100644 --- a/hs20/client/Makefile +++ b/hs20/client/Makefile @@ -67,7 +67,13 @@ OBJS += ../../src/crypto/sha256-internal.o CFLAGS += $(shell xml2-config --cflags) LIBS += $(shell xml2-config --libs) + +# Allow static/custom linking of libcurl. +ifdef CUST_CURL_LINKAGE +LIBS += ${CUST_CURL_LINKAGE} +else LIBS += -lcurl +endif CFLAGS += -DEAP_TLS_OPENSSL LIBS += -lssl -lcrypto