summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 21:43:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-23 21:43:54 +0000
commit89a2c994054e1176dafb8b386679f4ae6c3fb62e (patch)
tree2f100ec6fabef5d9496b7f499cb32f8e2dd56592
parentf34b16edd722879f9010c219a377ac24214d122c (diff)
Needs a bit more again
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8327 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure6
1 files changed, 5 insertions, 1 deletions
diff --git a/configure b/configure
index 8ffabe303..aa39c4628 100755
--- a/configure
+++ b/configure
@@ -1294,6 +1294,7 @@ if ($config{OSNAME} =~ /darwin/) {
PICLDFLAGS = -twolevel_namespace -undefined dynamic_lookup \$(FLAGS) -bundle
LAMEFLAGS = $nicerflags
+LAMEPICFLAGS = -twolevel_namespace -undefined dynamic_lookup $nicerflags -bundle
EOCHEESE
} else {
@@ -1301,6 +1302,7 @@ EOCHEESE
PICLDFLAGS = -fPIC -DPIC -shared \$(FLAGS)
LAMEFLAGS = $nicerflags
+LAMEPICFLAGS = -fPIC -DPIC -shared $nicerflags
EOCHEESE
}
@@ -1326,17 +1328,19 @@ EOCHEESE
if (nopedantic("src/modules/m_".$i.".cpp"))
{
$fl = "\$(LAMEFLAGS)";
+ $pfl = "\$(LAMEPICFLAGS)";
}
else
{
$fl = "\$(FLAGS)";
+ $pfl = "\$(PICFLAGS)";
}
#print "file: $i: cmflags=$cmflags; liflags=$liflags; deps=$deps\n";
print FILEHANDLE <<EOCHEESE;
m_$i.so: m_$i.cpp ../../include/modules.h ../../include/users.h ../../include/channels.h ../../include/base.h ../../include/inspircd_config.h ../../include/inspircd.h ../../include/configreader.h $deps
- \$(CC) -pipe -I../../include $fl $cmflags \$(PICLDFLAGS) $liflags -export-dynamic -o m_$i.so m_$i.cpp
+ \$(CC) -pipe -I../../include $fl $cmflags $pfl $liflags -export-dynamic -o m_$i.so m_$i.cpp
EOCHEESE
$crud = $crud . " install -m \$(INSTMODE) m_$i.so \$(MODPATH)\n";
###