]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Don't use -fPIC on MinGW platforms
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 10 Aug 2006 15:06:43 +0000 (15:06 +0000)
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 10 Aug 2006 15:06:43 +0000 (15:06 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4835 e03df62e-2008-0410-955e-edbf42e46eb7

configure

index aa004f4f2df238f3d511bbb6e35eb939d0bb9611..dc500ca8ee0f3a70d893f8599df3266559da50cb 100755 (executable)
--- 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 {