BUILD: makefile: support WOLFSSL_CFLAGS and WOLFSSL_LDFLAGS

The CFLAGS and LDFLAGS appended by USE_WOLFSSL can now be overridden
using WOLFSSL_CFLAGS and WOLFSSL_LDFLAGS.
This commit is contained in:
Willy Tarreau 2022-12-21 16:20:20 +01:00
parent e609ac1bbe
commit 7f48b6f1a4
1 changed files with 4 additions and 2 deletions

View File

@ -573,8 +573,10 @@ ifneq ($(USE_OPENSSL),)
endif
ifneq ($(USE_OPENSSL_WOLFSSL),)
OPTIONS_CFLAGS += $(if $(WOLFSSL_INC),-I$(WOLFSSL_INC) -I$(WOLFSSL_INC)/wolfssl)
OPTIONS_LDFLAGS += $(if $(WOLFSSL_LIB),-L$(WOLFSSL_LIB)) -lwolfssl
WOLFSSL_CFLAGS = $(if $(WOLFSSL_INC),-I$(WOLFSSL_INC) -I$(WOLFSSL_INC)/wolfssl)
WOLFSSL_LDFLAGS = $(if $(WOLFSSL_LIB),-L$(WOLFSSL_LIB)) -lwolfssl
OPTIONS_CFLAGS += $(WOLFSSL_CFLAGS)
OPTIONS_LDFLAGS += $(WOLFSSL_LDFLAGS)
endif
ifneq ($(USE_ENGINE),)