From 0080e06d36bc0263795fa7ff716fe0b2d218f5c1 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 11 Jul 2022 10:15:32 +0200 Subject: [PATCH] app_perl: Makefile - option to set the path to perl binary --- src/modules/app_perl/Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/modules/app_perl/Makefile b/src/modules/app_perl/Makefile index 70e440e77db..36820a3c898 100644 --- a/src/modules/app_perl/Makefile +++ b/src/modules/app_perl/Makefile @@ -1,4 +1,4 @@ -# perl module makefile +# app_perl module makefile # # # WARNING: do not run this directly, it should be run by the main Makefile @@ -8,14 +8,16 @@ auto_gen=kamailioxs.c NAME=app_perl.so LIBS= +PERLBIN ?= perl + ifeq ($(PERLLDOPTS),) - LIBS+=`perl -MExtUtils::Embed -e ldopts` + LIBS+=`$(PERLBIN) -MExtUtils::Embed -e ldopts` else LIBS+=$(PERLLDOPTS) endif ifeq ($(PERLCCOPTS),) - PERLCCOPTS=$(shell perl -MExtUtils::Embed -e ccopts) + PERLCCOPTS=$(shell $(PERLBIN) -MExtUtils::Embed -e ccopts) endif DEFS+=$(PERLCCOPTS) @@ -25,7 +27,7 @@ PODFILES=kamailioxs.xs `find lib/perl -name *.pm` ifeq ($(TYPEMAP),) ifeq ($(PERLLIBPATH),) - PERLLIBPATH=`perl -MConfig -e 'print $$Config{installprivlib}'` + PERLLIBPATH=`$(PERLBIN) -MConfig -e 'print $$Config{installprivlib}'` endif TYPEMAP=$(PERLLIBPATH)/ExtUtils/typemap endif