Module: kamailio
Branch: master
Commit: 681ff651ce5c0594adc0919c4a0a76e1931c981d
URL:
https://github.com/kamailio/kamailio/commit/681ff651ce5c0594adc0919c4a0a76e…
Author: S-P Chan <shihping.chan(a)gmail.com>
Committer: S-P Chan <shihping.chan(a)gmail.com>
Date: 2022-12-19T11:41:12+08:00
tlsa: OpenSSL usually installs lib/|lib64/ and include/ as siblings
---
Modified: src/modules/tlsa/Makefile
---
Diff:
https://github.com/kamailio/kamailio/commit/681ff651ce5c0594adc0919c4a0a76e…
Patch:
https://github.com/kamailio/kamailio/commit/681ff651ce5c0594adc0919c4a0a76e…
---
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)