summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure b/configure
index aa004f4f2..dc500ca8e 100755
--- a/configure
+++ b/configure
@@ -909,7 +909,9 @@ sub getosflags {
$config{STATIC_LINK} = "yes";
}
}
- if ($config{OSNAME} =~ /SunOS/) {
+
+ if ($config{OSNAME} =~ /SunOS/)
+ {
# solaris/sunos needs these
# socket = bsd sockets api
# nsl = dns stuff
@@ -917,6 +919,12 @@ sub getosflags {
# resolv = inet_aton only (why isnt this in nsl?!)
$config{LDLIBS} = $config{LDLIBS} . " -lsocket -lnsl -lrt -lresolv";
}
+
+ if($config{OSNAME} eq "MINGW32")
+ {
+ # All code is position-independent on windows
+ $config{FLAGS} =~ s/-fPIC //;
+ }
}
sub is_dir {