]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
OK, I think I have fscking IRIX figured out for building PIC code.
authorRichard Sharpe <sharpe@samba.org>
Mon, 23 Jul 2001 07:18:03 +0000 (07:18 +0000)
committerRichard Sharpe <sharpe@samba.org>
Mon, 23 Jul 2001 07:18:03 +0000 (07:18 +0000)
You have to check which fsking compiler is used and do different things!

source/configure.in

index 8b147c49e019eafc1b466ca48e4ccf4e173ccbb9..44b2533294ab4646f0115bf1f061c28d68436f80 100644 (file)
@@ -641,7 +641,11 @@ case "$host_os" in
                        ATTEMPT_WRAP32_BUILD=yes
                        BLDSHARED="true"
                        LDSHFLAGS="-Wl,-soname,\$@ -shared"
-                       PICFLAG="-KPIC"
+                       if test "${ac_cv_prog_CC}" = "gcc"; then
+                               PICFLAG="-fPIC"
+                       else 
+                               PICFLAG="-KPIC"
+                       fi
                ;;
                *aix*) AC_DEFINE(AIX)
                        BLDSHARED="true"