From 5cddde7e9860236f6d559c75c60476d24f3cf398 Mon Sep 17 00:00:00 2001 From: Davidson Kumaresan Date: Fri, 5 Apr 2024 15:33:11 +0000 Subject: [PATCH] openssl: add option to provide the openssl path Add a new variable to have the directory that contains the openssl libraries and headers needed for xtest. The build system will look for the needed libraries and headers specified in this variable during the compilation of xtest. Signed-off-by: Davidson Kumaresan Acked-by: Jens Wiklander Acked-by: Etienne Carriere --- host/xtest/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/host/xtest/Makefile b/host/xtest/Makefile index bdab2f6bc..bd042d655 100644 --- a/host/xtest/Makefile +++ b/host/xtest/Makefile @@ -40,6 +40,10 @@ endef WITH_OPENSSL ?= y ifeq ($(WITH_OPENSSL),y) CFLAGS += -DOPENSSL_FOUND=1 -DOPENSSL_API_COMPAT=10100 +ifneq ($(OPENSSL_INSTALL_PATH),) +CFLAGS += -I$(OPENSSL_INSTALL_PATH)/include +LDFLAGS += -L$(OPENSSL_INSTALL_PATH)/lib +endif LDFLAGS += -lcrypto endif #require OpenSSL