[sr-dev] git:master:cfb806e4: outbound: use pkg-config for libcrypto in makefile

Daniel-Constantin Mierla miconda at gmail.com
Fri Aug 19 09:04:01 CEST 2016


Module: kamailio
Branch: master
Commit: cfb806e41ecde8392105a12c4e8ace31f1345352
URL: https://github.com/kamailio/kamailio/commit/cfb806e41ecde8392105a12c4e8ace31f1345352

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-08-19T09:03:44+02:00

outbound: use pkg-config for libcrypto in makefile

---

Modified: modules/outbound/Makefile

---

Diff:  https://github.com/kamailio/kamailio/commit/cfb806e41ecde8392105a12c4e8ace31f1345352.diff
Patch: https://github.com/kamailio/kamailio/commit/cfb806e41ecde8392105a12c4e8ace31f1345352.patch

---

diff --git a/modules/outbound/Makefile b/modules/outbound/Makefile
index df43360..4f6f0f3 100644
--- a/modules/outbound/Makefile
+++ b/modules/outbound/Makefile
@@ -1,4 +1,4 @@
-# 
+#
 # WARNING: do not run this directly, it should be run by the master Makefile
 
 include ../../Makefile.defs
@@ -6,15 +6,32 @@ auto_gen=
 NAME=outbound.so
 
 ifeq ($(CROSS_COMPILE),)
+	BUILDER = $(shell which pkg-config)
+endif
+
+ifneq ($(BUILDER),)
 SSL_BUILDER=$(shell \
 	if pkg-config --exists libssl; then \
 		echo 'pkg-config libssl'; \
 	fi)
+
+CRYPTO_BUILDER=$(shell \
+	if pkg-config --exists libcrypto; then \
+		echo 'pkg-config libcrypto'; \
+	fi)
 endif
 
+ifneq ($(BUILDER),)
+
 ifneq ($(SSL_BUILDER),)
 	DEFS += $(shell $(SSL_BUILDER) --cflags)
 	LIBS += $(shell $(SSL_BUILDER) --libs)
+endif
+ifneq ($(CRYPTO_BUILDER),)
+	DEFS += $(shell $(CRYPTO_BUILDER) --cflags)
+	LIBS += $(shell $(CRYPTO_BUILDER) --libs)
+endif
+
 else
 	DEFS += -I$(LOCALBASE)/ssl/include
 	LIBS += -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \




More information about the sr-dev mailing list