]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: shctx: allow to be built without openssl
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 2 Nov 2017 15:00:51 +0000 (16:00 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Nov 2017 15:58:25 +0000 (16:58 +0100)
The shctx functions does not depend of openssl anymore, allows to build
them without openssl.

Makefile

index 8f1bcd220f3617e27e7c8140fadcf4b3e06154cf..f066f3102a5540b951778fc62ca3cf4516b3caa5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -603,7 +603,10 @@ OPTIONS_LDFLAGS += $(if $(SSL_LIB),-L$(SSL_LIB)) -lssl -lcrypto
 ifneq ($(USE_DL),)
 OPTIONS_LDFLAGS += -ldl
 endif
-OPTIONS_OBJS  += src/ssl_sock.o src/shctx.o
+OPTIONS_OBJS  += src/ssl_sock.o
+endif
+
+# The private cache option affect the way the shctx is built
 ifneq ($(USE_PRIVATE_CACHE),)
 OPTIONS_CFLAGS  += -DUSE_PRIVATE_CACHE
 else
@@ -616,7 +619,6 @@ OPTIONS_CFLAGS  += -DUSE_SYSCALL_FUTEX
 endif
 endif
 endif
-endif
 
 ifneq ($(USE_LUA),)
 check_lua_lib = $(shell echo "int main(){}" | $(CC) -o /dev/null -x c - $(2) -l$(1) 2>/dev/null && echo $(1))
@@ -857,7 +859,7 @@ OBJS = src/cfgparse.o src/proto_http.o src/stats.o src/server.o src/stream.o \
        src/raw_sock.o src/lb_chash.o src/lb_fwlc.o src/lb_fwrr.o \
        src/lb_fas.o src/applet.o src/hdr_idx.o src/ev_select.o src/hash.o \
        src/lb_map.o src/base64.o src/sha1.o src/protocol.o src/h1.o \
-       src/action.o src/hathreads.o src/mux_pt.o src/cache.o
+       src/action.o src/hathreads.o src/mux_pt.o src/cache.o src/shctx.o
 
 EBTREE_OBJS = $(EBTREE_DIR)/ebtree.o \
               $(EBTREE_DIR)/eb32tree.o $(EBTREE_DIR)/eb64tree.o \