Module: kamailio Branch: master Commit: f3c553a55d7f468d6575f46c4a330cad8167cf56 URL: https://github.com/kamailio/kamailio/commit/f3c553a55d7f468d6575f46c4a330cad...
Author: Fabrice Fontaine fabrice.fontaine@orange.com Committer: Fabrice Fontaine fabrice.fontaine@orange.com Date: 2017-01-17T20:35:24+01:00
Reuse PERLLDOPTS in db_perlvdb
PERLLDOPTS is already used in app_perl module. Reuse this variable in db_perlvdb module instead of always setting LIBS to (shell perl -MExtUtils::Embed -e ldopts) Indeed, this will not work when cross-compiling (the value will be retrieved for the host perl and not the target perl)
Signed-off-by: Fabrice Fontaine fabrice.fontaine@orange.com
---
Modified: src/modules/db_perlvdb/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/f3c553a55d7f468d6575f46c4a330cad... Patch: https://github.com/kamailio/kamailio/commit/f3c553a55d7f468d6575f46c4a330cad...
---
diff --git a/src/modules/db_perlvdb/Makefile b/src/modules/db_perlvdb/Makefile index 47830a2..0a062bc 100644 --- a/src/modules/db_perlvdb/Makefile +++ b/src/modules/db_perlvdb/Makefile @@ -4,7 +4,11 @@ include ../../Makefile.defs auto_gen= NAME=db_perlvdb.so -LIBS:=$(shell perl -MExtUtils::Embed -e ldopts) +ifeq ($(PERLLDOPTS),) + LIBS:=$(shell perl -MExtUtils::Embed -e ldopts) +else + LIBS+=$(PERLLDOPTS) +endif PERL_DEFS:=$(shell perl -MExtUtils::Embed -e ccopts) DEFS+=$(PERL_DEFS)