From f3c553a55d7f468d6575f46c4a330cad8167cf56 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Tue, 17 Jan 2017 20:01:09 +0100 Subject: [PATCH] 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 --- src/modules/db_perlvdb/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/db_perlvdb/Makefile b/src/modules/db_perlvdb/Makefile index 47830a2e391..0a062bca42a 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)