mirror of
https://github.com/znc/znc.git
synced 2026-07-21 09:03:32 +02:00
Change internal way of making Makefile to know if need to compile modperl or not.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2195 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+2
-1
@@ -21,6 +21,7 @@ LDFLAGS := @LDFLAGS@
|
||||
# LIBS are not and should not be used in here.
|
||||
# The znc binary links already against those.
|
||||
# LIBS := @LIBS@
|
||||
PERL_ON := @PERL@
|
||||
PERL := @PERL_BINARY@
|
||||
SWIG := @SWIG_BINARY@
|
||||
MODDIR := @MODDIR@
|
||||
@@ -65,7 +66,7 @@ FILES := $(foreach file, $(FILES), \
|
||||
))
|
||||
endif
|
||||
|
||||
ifneq "$(PERL)" ""
|
||||
ifeq "$(PERL_ON)" "yes"
|
||||
# We execute this now so that we see the 'beauty' of these flags in make's output
|
||||
PERLCOMMON := $(shell $(PERL) -MExtUtils::Embed -e perl_inc -e ldopts)
|
||||
# Perl API is ugly, casting string literals to char* and redeclaring functions :(
|
||||
|
||||
Reference in New Issue
Block a user