[PATCH 02/12] hs20: Allow custom lib-curl linkage.

greearb at candelatech.com greearb
Thu Mar 26 14:39:48 PDT 2015


From: Ben Greear <greearb at candelatech.com>

In case someone is compiling their own curl and wants to link
it statically, for instance.

Signed-off-by: Ben Greear <greearb at candelatech.com>
---
 hs20/client/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hs20/client/Makefile b/hs20/client/Makefile
index ca67b54..d8cab0f 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 curl.
+ifdef CUST_CURL_LINKAGE
+LIBS += ${CUST_CURL_LINKAGE}
+else
 LIBS += -lcurl
+endif
 
 CFLAGS += -DEAP_TLS_OPENSSL
 LIBS += -lssl -lcrypto
-- 
1.9.3




More information about the Hostap mailing list