diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 15:06:43 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 15:06:43 +0000 |
commit | 0056f9a75941c1c360a3dd5dc63b6a704ae6a995 (patch) | |
tree | dda0182d6eab2d046ba83cecf1df08f0601d4c9d | |
parent | 75d72cb832f41c08b0f299e61ed6994b115cb7b7 (diff) |
Don't use -fPIC on MinGW platforms
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4835 e03df62e-2008-0410-955e-edbf42e46eb7
-rwxr-xr-x | configure | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 { |