]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: make sure to also ignore SSL_INC when using wolfssl
authorWilly Tarreau <w@1wt.eu>
Wed, 14 Dec 2022 17:38:58 +0000 (18:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
I got a build error when adding USE_OPENSSL_WOLFSSL to my make command
line because SSL_INC was still set and caused some conflicting headers
to be included first. There's already an exclusion test for the wolfssl
variant used for SSL_LIB, make it also cover SSL_INC to avoid this.

This may be backported to 2.7 to ease testing of wolfssl.

Makefile

index e68f3f766c4fe9579c5e80d2670823b914de6596..c464e78349cf2b4c8c67a90cd55b035aee58b675 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -568,8 +568,8 @@ ifneq ($(USE_OPENSSL),)
 # reason why it's added by default. Some even need -lz, then you'll need to
 # 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.
-OPTIONS_CFLAGS  += $(if $(SSL_INC),-I$(SSL_INC))
 ifeq ($(USE_OPENSSL_WOLFSSL),)
+OPTIONS_CFLAGS  += $(if $(SSL_INC),-I$(SSL_INC))
 OPTIONS_LDFLAGS += $(if $(SSL_LIB),-L$(SSL_LIB)) -lssl -lcrypto
 endif
 ifneq ($(USE_DL),)