提交 750e2bae authored 作者: Travis Cross's avatar Travis Cross

Build mod_perl without pedantic flags even when debugging

This means we don't have to set PERL_GCC_PEDANTIC which removes
assertions that are helpful for debugging.
上级 cb94340e
...@@ -3,13 +3,14 @@ MODNAME=mod_perl ...@@ -3,13 +3,14 @@ MODNAME=mod_perl
PERL = perl PERL = perl
PERL_LIBDIR =-L`perl -MConfig -e 'print $$Config{archlib}'`/CORE PERL_LIBDIR =-L`perl -MConfig -e 'print $$Config{archlib}'`/CORE
PERL_LIBS =`perl -MConfig -e 'print $$Config{libs}'` PERL_LIBS =`perl -MConfig -e 'print $$Config{libs}'`
CFLAGS_FILTER := -ansi -pedantic
perldir=$(prefix)/perl perldir=$(prefix)/perl
mod_LTLIBRARIES = mod_perl.la mod_LTLIBRARIES = mod_perl.la
perl_LTLIBRARIES = freeswitch.la perl_LTLIBRARIES = freeswitch.la
mod_perl_la_SOURCES = mod_perl.c freeswitch_perl.cpp mod_perl_wrap.cpp perlxsi.c mod_perl_la_SOURCES = mod_perl.c freeswitch_perl.cpp mod_perl_wrap.cpp perlxsi.c
mod_perl_la_CFLAGS = $(AM_CFLAGS) -w mod_perl_la_CFLAGS = $(filter-out $(CFLAGS_FILTER),$(AM_CFLAGS)) -w
mod_perl_la_CXXFLAGS = $(AM_CXXFLAGS) -w mod_perl_la_CXXFLAGS = $(filter-out $(CFLAGS_FILTER),$(AM_CXXFLAGS)) -w
mod_perl_la_CPPFLAGS = -DMULTIPLICITY `$(PERL) -MExtUtils::Embed -e ccopts` -DEMBED_PERL -I$(switch_srcdir)/libs/libteletone/src/ mod_perl_la_CPPFLAGS = -DMULTIPLICITY `$(PERL) -MExtUtils::Embed -e ccopts` -DEMBED_PERL -I$(switch_srcdir)/libs/libteletone/src/
mod_perl_la_LIBADD = $(switch_builddir)/libfreeswitch.la mod_perl_la_LIBADD = $(switch_builddir)/libfreeswitch.la
mod_perl_la_LDFLAGS = -avoid-version -module -no-undefined -shared `$(PERL) -MExtUtils::Embed -e ldopts` `$(PERL) -MConfig -e 'print $$Config{libs}'` mod_perl_la_LDFLAGS = -avoid-version -module -no-undefined -shared `$(PERL) -MExtUtils::Embed -e ldopts` `$(PERL) -MConfig -e 'print $$Config{libs}'`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论