]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: support OPENSSL_CFLAGS and OPENSSL_LDFLAGS
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2022 15:20:01 +0000 (16:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
The CFLAGS and LDFLAGS appended by USE_OPENSSL can now be overridden
using OPENSSL_CFLAGS and OPENSSL_LDFLAGS.

Makefile

index adf1d1317624c45d4fce96d11e40723bfb27d9e7..d0b334412c879949166e118d485be50b4eac281c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -566,8 +566,8 @@ ifneq ($(USE_OPENSSL),)
   # pass it in the "ADDLIB" variable if needed. If your SSL libraries are not
   # in the usual path, use SSL_INC=/path/to/inc and SSL_LIB=/path/to/lib.
   ifeq ($(USE_OPENSSL_WOLFSSL),)
-    OPTIONS_CFLAGS  += $(if $(SSL_INC),-I$(SSL_INC))
-    OPTIONS_LDFLAGS += $(if $(SSL_LIB),-L$(SSL_LIB)) -lssl -lcrypto
+    OPENSSL_CFLAGS   = $(if $(SSL_INC),-I$(SSL_INC))
+    OPENSSL_LDFLAGS  = $(if $(SSL_LIB),-L$(SSL_LIB)) -lssl -lcrypto
   endif
   OPTIONS_OBJS  += src/ssl_sock.o src/ssl_ckch.o src/ssl_sample.o src/ssl_crtlist.o src/cfgparse-ssl.o src/ssl_utils.o src/jwt.o src/ssl_ocsp.o
 endif