]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
HS 2.0R2: Allow custom libcurl linkage for hs20-osu-client
authorBen Greear <greearb@candelatech.com>
Thu, 26 Mar 2015 21:39:48 +0000 (17:39 -0400)
committerJouni Malinen <j@w1.fi>
Sat, 28 Mar 2015 09:11:33 +0000 (11:11 +0200)
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>
hs20/client/Makefile

index ca67b54da2eedee7a8e6149be31c8c5638d0cd81..94cd5f14df1443cc15ba8197ea34357127c4222d 100644 (file)
@@ -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