Skip to content

Commit

Permalink
openssl: add option to provide the openssl path
Browse files Browse the repository at this point in the history
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 <davidson.kumaresan@arm.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
  • Loading branch information
davidson-k authored and jforissier committed May 13, 2024
1 parent f3e46d4 commit 5cddde7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions host/xtest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5cddde7

Please sign in to comment.