diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-05 16:10:28 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-06-05 16:10:28 +0000 |
commit | 1b93cf63e3bcfbb8168fe40fc116fe01fc306a5f (patch) | |
tree | 079243d939e3d0d752ed60efb5ebf06407bcfd32 | |
parent | 78f98065d5d1cab8b40207cf2d03dc48b4de8420 (diff) |
Configure ldlibs patch by djGrrr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7236 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-x | configure | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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"; } |