From 973b41a99c1103efb7b9ad0c57c525207c94032e Mon Sep 17 00:00:00 2001 From: psychon Date: Sat, 1 Mar 2008 09:29:26 +0000 Subject: [PATCH] Fix compilling modperl Modperl was broken for quite some time and no one noticed... The modperlFLAGS include the path to some static lib which will be linked in. For this to work, we need to already have used one of its symbols. Now, if the linker first sees this DynaLoader.a and then our object file, there are no references to any symbol from it yet and thus he drops it. The fix is easy: The modperlFLAGS need to be after modperl.cpp on the command line. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@970 726aef4b-f618-498e-8847-2d620e286838 --- modules/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Makefile.in b/modules/Makefile.in index d3879ab4..99da7f32 100644 --- a/modules/Makefile.in +++ b/modules/Makefile.in @@ -81,10 +81,10 @@ clean: ifeq ($(DEPEND), yes) %.so: %.cpp - $(CXX) $(CXXFLAGS) $(INCLUDES) $(LDFLAGS) $($(basename $<)FLAGS) -shared -o $@ $< -MMD -MF .depend/$<.dep + $(CXX) $(CXXFLAGS) $(INCLUDES) $(LDFLAGS) -shared -o $@ $< $($(basename $<)FLAGS) -MMD -MF .depend/$<.dep else %.so: %.cpp - $(CXX) $(CXXFLAGS) $(INCLUDES) $(LDFLAGS) $($(basename $<)FLAGS) -shared -o $@ $< + $(CXX) $(CXXFLAGS) $(INCLUDES) $(LDFLAGS) -shared -o $@ $< $($(basename $<)FLAGS) endif modperl_install: create_install_dir