diff mbox

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

Message ID 1427405998-13038-2-git-send-email-greearb@candelatech.com
State Accepted
Headers show

Commit Message

Ben Greear March 26, 2015, 9:39 p.m. UTC
From: Ben Greear <greearb@candelatech.com>

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

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

Comments

Jouni Malinen March 28, 2015, 12:42 p.m. UTC | #1
Thanks, applied patches 2-4,6-7,9-11 with some cleanup.
diff mbox

Patch

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