From 7cb909b0f3378b7f8f7e2e2fe067685c9e788f6c Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 18 Mar 2010 15:14:31 +0000 Subject: PURE_STATIC fixes to use normal tags git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12641 e03df62e-2008-0410-955e-edbf42e46eb7 --- make/unit-cc.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'make/unit-cc.pl') diff --git a/make/unit-cc.pl b/make/unit-cc.pl index e64053b66..aefefa4ac 100755 --- a/make/unit-cc.pl +++ b/make/unit-cc.pl @@ -29,6 +29,10 @@ my $cflags = $ENV{CXXFLAGS}; $cflags =~ s/ -pedantic// if nopedantic($file); $cflags .= ' ' . getcompilerflags($file); +if ($file =~ m#(?:^|/)((?:m|cmd)_[^/. ]+)(?:\.cpp|/.*\.cpp)$#) { + $cflags .= ' -DMODNAME='.$1.'.so'; +} + my $flags; if ($out =~ /\.so$/) { $flags = join ' ', $cflags, $ENV{PICLDFLAGS}, getlinkerflags($file); -- cgit v1.2.3