summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-09 03:48:54 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-09 03:48:54 +0000
commit19f306c72c5bec96ade6099b6febea1e288f6c44 (patch)
tree13090556e8eb538bd9a3446684efec4b36e5ce8f
parent141467d8703fd1e887d8509d0b61ad798d36a205 (diff)
New way of building modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1340 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-xconfigure7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure b/configure
index f0881ee4c..f8959a5b7 100755
--- a/configure
+++ b/configure
@@ -454,9 +454,10 @@ EOF
$flags = getcompilerflags("src/modules/m_".$i.".cpp");
print FILEHANDLE <<EOCHEESE;
m_$i.so: m_$i.cpp ../../include/modules.h ../../include/users.h ../../include/channels.h ../../include/servers.h ../../include/base.h
- \$(CC) -I../../include \$(FLAGS) -shared $flags -o m_$i.so m_$i.cpp
- \@cp m_$i.so \$(MODPATH)/
- \@chmod 0700 \$(MODPATH)/m_$i.so
+ \$(CC) -I../../include \$(FLAGS) -export-dynamic $flags m_$i.cpp
+ \$(CC) \$(FLAGS) -shared $flags -o m_$i.so m_$i.o
+ cp m_$i.so \$(MODPATH)/
+ chmod 0700 \$(MODPATH)/m_$i.so
EOCHEESE
}