From 681ff651ce5c0594adc0919c4a0a76e1931c981d Mon Sep 17 00:00:00 2001 From: S-P Chan Date: Mon, 19 Dec 2022 11:36:14 +0800 Subject: [PATCH] tlsa: OpenSSL usually installs lib/|lib64/ and include/ as siblings --- src/modules/tlsa/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/tlsa/Makefile b/src/modules/tlsa/Makefile index d97e8652137..528c983b159 100644 --- a/src/modules/tlsa/Makefile +++ b/src/modules/tlsa/Makefile @@ -44,7 +44,12 @@ endif # ifneq ($(CRYPTO_BUILDER),) else ## when linking against static libs compiled from sources - DEFS += -I$(LIBSSL_STATIC_SRCPATH)/include + ## default OpenSSL installation has lib/,lib64/ as siblings of include/ + ifneq "$(wildcard $(LIBSSL_STATIC_SRCPATH)/../include )" "" + DEFS += -I$(LIBSSL_STATIC_SRCPATH)/../include + else + DEFS += -I$(LIBSSL_STATIC_SRCPATH)/include + endif LIBS += $(LIBSSL_STATIC_SRCPATH)/libssl.a $(LIBSSL_STATIC_SRCPATH)/libcrypto.a endif # ifneq ($(LIBSSL_STATIC_SRCLIB),yes)