Module: sip-router Branch: master Commit: 389bbe3410018e6d58befb486f0db2ec4ff7ece6 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=389bbe34...
Author: Ovidiu Sas osas@voipembedded.com Committer: Ovidiu Sas osas@voipembedded.com Date: Tue Dec 4 15:58:03 2012 -0500
tls: fix cross-compilation
---
modules/tls/Makefile | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/tls/Makefile b/modules/tls/Makefile index 8d11f4d..679b37c 100644 --- a/modules/tls/Makefile +++ b/modules/tls/Makefile @@ -10,9 +10,15 @@ auto_gen= NAME=tls.so
CFLASFOUND = 0 + +ifeq ($(CROSS_COMPILE),) BUILDER = $(shell which pkg-config) +endif + ifneq ($(BUILDER),) + ifeq ($(CROSS_COMPILE),) SSLLIBS = $(shell pkg-config --silence-errors --libs libssl) + endif ifneq ($(SSLLIBS),) DEFS+= $(shell pkg-config --silence-errors --cflags libssl) LIBS+= $(shell pkg-config --silence-errors --libs libssl)