From 992351b9d647034b34392ed0f968f89ec4338174 Mon Sep 17 00:00:00 2001 From: psychon Date: Wed, 8 Sep 2010 15:57:05 +0000 Subject: [PATCH] modperl: Move some common compiler flags to $(PERLCOMMON) git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2122 726aef4b-f618-498e-8847-2d620e286838 --- modules/Makefile.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/Makefile.in b/modules/Makefile.in index d9579493..1f6e76a3 100644 --- a/modules/Makefile.in +++ b/modules/Makefile.in @@ -67,11 +67,12 @@ endif ifneq "$(PERL)" "" # 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) +PERLCOMMON := $(shell $(PERL) -MExtUtils::Embed -e perl_inc -e ldopts) # Perl API is ugly, casting string literals to char* and redeclaring functions :( -modperlFLAGS += -Wno-write-strings -Wno-redundant-decls -Wno-missing-declarations +PERLCOMMON += -Wno-write-strings -Wno-redundant-decls -Wno-missing-declarations # This is for SWIG -modperlFLAGS += -DSWIG_TYPE_TABLE=znc +PERLCOMMON += -DSWIG_TYPE_TABLE=znc +modperlFLAGS := $(PERLCOMMON) # Find additional headers for out-of-tree build modperlFLAGS += -I. PERLHOOK := modperl_install @@ -133,7 +134,7 @@ clean: modperl.so: modperl/ZNC.so modperl/ZNC.so: modperl/modperl_wrap.cxx Makefile $(E) Building ZNC perl bindings library... - $(Q)$(CXX) $(MODFLAGS) $(LDFLAGS) $(MODLINK) -I$(srcdir) -DSWIG_TYPE_TABLE=znc $(shell $(PERL) -MExtUtils::Embed -e perl_inc -e ldopts) -o $@ $< + $(Q)$(CXX) $(MODFLAGS) $(LDFLAGS) $(MODLINK) -I$(srcdir) $(PERLCOMMON) -o $@ $< ifneq "$(SWIG)" "" modperl/modperl_wrap.cxx: modperl/modperl.i Makefile modperl/module.h modperl/CString.i $(E) Generating ZNC API for perl...