[sr-dev] git:master:0080e06d: app_perl: Makefile - option to set the path to perl binary

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 11 10:16:11 CEST 2022


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-07-11T10:16:02+02:00

app_perl: Makefile - option to set the path to perl binary

---

Modified: src/modules/app_perl/Makefile

---

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

---

diff --git a/src/modules/app_perl/Makefile b/src/modules/app_perl/Makefile
index 70e440e77d..36820a3c89 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




More information about the sr-dev mailing list