summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-05 16:10:28 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-05 16:10:28 +0000
commit1b93cf63e3bcfbb8168fe40fc116fe01fc306a5f (patch)
tree079243d939e3d0d752ed60efb5ebf06407bcfd32 /configure
parent78f98065d5d1cab8b40207cf2d03dc48b4de8420 (diff)
Configure ldlibs patch by djGrrr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7236 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure b/configure
index e1bcc153d..fdde42e2b 100755
--- a/configure
+++ b/configure
@@ -907,6 +907,7 @@ sub getosflags {
$config{LDLIBS} = "-ldl -lstdc++";
$config{FLAGS} = "-fno-strict-aliasing -fPIC -Wall -Woverloaded-virtual $config{OPTIMISATI}";
$config{FLAGS} .= " " . $ENV{CXXFLAGS} if exists($ENV{CXXFLAGS});
+ $config{LDLIBS} .= " " . $ENV{LDLIBS} if exists($ENV{LDLIBS});
$config{MAKEPROG} = "make";
if ($config{OSNAME} =~ /CYGWIN/) {
$config{FLAGS} = "-fno-strict-aliasing -Wall -Woverloaded-virtual $config{OPTIMISATI}";
@@ -923,9 +924,13 @@ sub getosflags {
$config{STATIC_LINK} = "yes";
return "Cygwin-Static";
}
+ }
+
+ if ($config{OSNAME} =~ /FreeBSD/i) {
$config{FLAGS} .= " " . $ENV{CXXFLAGS} if exists($ENV{CXXFLAGS});
+ $config{LDLIBS} .= " " . $ENV{LDLIBS} if exists($ENV{LDLIBS});
}
-
+
if ($config{OSNAME} =~ /SunOS/i)
{
# solaris/sunos needs these
@@ -934,7 +939,7 @@ sub getosflags {
# rt = POSIX realtime extensions
# resolv = inet_aton only (why isnt this in nsl?!)
$config{MAKEPROG} = "gmake";
- $config{LDLIBS} = $config{LDLIBS} . " -lsocket -lnsl -lrt -lresolv";
+ $config{LDLIBS} .= " -lsocket -lnsl -lrt -lresolv";
return "Solaris";
}