summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
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";
}