aboutsummaryrefslogtreecommitdiffstats
path: root/hs20
diff options
context:
space:
mode:
authorBen Greear <greearb@candelatech.com>2015-03-26 21:39:48 (GMT)
committerJouni Malinen <j@w1.fi>2015-03-28 09:11:33 (GMT)
commit2e7a228878b325e8a10c5f506fa6f561a5b2a13b (patch)
tree36ad2684d78ff502d22ce99242c53c6289d83660 /hs20
parent53f4ed68ee2d47304a0cd61616a748a045cc635a (diff)
downloadhostap-2e7a228878b325e8a10c5f506fa6f561a5b2a13b.zip
hostap-2e7a228878b325e8a10c5f506fa6f561a5b2a13b.tar.gz
hostap-2e7a228878b325e8a10c5f506fa6f561a5b2a13b.tar.bz2
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>
Diffstat (limited to 'hs20')
-rw-r--r--hs20/client/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/hs20/client/Makefile b/hs20/client/Makefile
index ca67b54..94cd5f1 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