]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Revert addition of PERL_GCC_PEDANTIC to CFLAGS
authorTravis Cross <tc@traviscross.com>
Fri, 30 May 2014 15:40:46 +0000 (15:40 +0000)
committerTravis Cross <tc@traviscross.com>
Fri, 30 May 2014 15:40:46 +0000 (15:40 +0000)
Brian and I decided to handle this by just stripping -ansi -pedantic
from the mod_perl build instead.

Revert "Since we can't tell if the system perl was built with
pedantic, we have a problem because we default debug enabled which
uses AX_CFLAGS_WARN_ALL_ANSI, For the GNU CC compiler it will be
-Wall (and -ansi -pedantic) The result is added to the shellvar being
CFLAGS by default.  Which then gets included for building mod_perl,
Either way I think this is the correct corse of action to overcome
these new builds of mod_perl."

This reverts commit cb94340e268466d19f41961f3b435897994ec1fa.

configure.ac
src/mod/languages/mod_perl/Makefile.am

index b5b68de210144b869c3a0b6b21a8f7e72509a9ab..4da80f2105f0b78e9db18849925fffff355c0507 100644 (file)
@@ -464,7 +464,6 @@ if test "${enable_debug}" = "yes"; then
        CFLAGS="$saved_CFLAGS"  
 
        if test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then
-           APR_ADDTO(SWITCH_PERL_CPPFLAGS, -DPERL_GCC_PEDANTIC)
            APR_ADDTO(SWITCH_AM_CFLAGS, -g -ggdb)
            export DEBUG_CFLAGS="-g -ggdb"
        fi
@@ -727,7 +726,6 @@ fi
 
 AC_SUBST(SWITCH_AM_CFLAGS)
 AC_SUBST(SWITCH_ANSI_CFLAGS)
-AC_SUBST(SWITCH_PERL_CPPFLAGS)
 AC_SUBST(SWITCH_AM_CXXFLAGS)
 AC_SUBST(SWITCH_AM_LDFLAGS)
 AC_SUBST(ESL_LDFLAGS)
index 3c8d84cfd051a48a4a4621c568a5d057de9cbac6..6a8f56a9fd3a14b556e0a9d7573a260ac77145ad 100644 (file)
@@ -17,7 +17,7 @@ mod_perl_la_LDFLAGS  = -avoid-version -module -no-undefined -shared `$(PERL) -ME
 
 freeswitch_la_SOURCES = freeswitch_perl.cpp mod_perl_wrap.cpp perlxsi.c
 freeswitch_la_LDFLAGS = -avoid-version -module -no-undefined -shared $(LDFLAGS)
-freeswitch_la_CPPFLAGS = -DMULTIPLICITY `$(PERL) -MExtUtils::Embed -e ccopts` -DEMBED_PERL -I$(switch_srcdir)/libs/libteletone/src/ $(SWITCH_PERL_CPPFLAGS)
+freeswitch_la_CPPFLAGS = -DMULTIPLICITY `$(PERL) -MExtUtils::Embed -e ccopts` -DEMBED_PERL -I$(switch_srcdir)/libs/libteletone/src/ 
 reswig:        swigclean mod_perl_wrap.cpp
 
 swigclean: clean