Skip to content

Commit

Permalink
app_perl: Makefile - option to set the path to perl binary
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 11, 2022
1 parent 7856251 commit 0080e06
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions 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
Expand All @@ -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)

Expand All @@ -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
Expand Down

0 comments on commit 0080e06

Please sign in to comment.