]> jfr.im git - irc/rizon/znc.git/commitdiff
modperl: Show the actual compiler flags and get rid of the warnings
authorpsychon <redacted>
Sun, 26 Oct 2008 18:58:13 +0000 (18:58 +0000)
committerpsychon <redacted>
Sun, 26 Oct 2008 18:58:13 +0000 (18:58 +0000)
We now first run the perl command to get the compiler flags and display
those when compiling modperl, so we now what's going on.

Plus this also uses -Wno-write-strings to disabled all the perl compiler
warnings.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1261 726aef4b-f618-498e-8847-2d620e286838

modules/Makefile.in

index 683dbe3ea2797da736a895f8e223e6b7140b7b50..98cf032a3170b7e3c197fe560ac60f93ea50b7d9 100644 (file)
@@ -36,7 +36,10 @@ FILES    := $(foreach file, $(FILES), \
 endif
 
 ifneq "$(PERL)" ""
-modperlFLAGS := `$(PERL) -MExtUtils::Embed -e perl_inc -e ldopts`
+# We execute this now so that we see the 'beauty' of these flags in make's output
+modperlFLAGS := $(shell $(PERL) -MExtUtils::Embed -e perl_inc -e ldopts)
+# Perl API is ugly, casting string literals to char* :(
+modperlFLAGS += -Wno-write-strings
 PERLHOOK     := modperl_install
 else
 FILES    := $(shell echo $(FILES) | sed -e "s/modperl//")