]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
One more possible fix for Solaris CC and GCC
authorRichard Sharpe <sharpe@samba.org>
Mon, 23 Jul 2001 12:22:08 +0000 (12:22 +0000)
committerRichard Sharpe <sharpe@samba.org>
Mon, 23 Jul 2001 12:22:08 +0000 (12:22 +0000)
source/configure.in

index 8385be9d45293be690806aecbbfe666ece127ac8..1691e73f218b845238bd0409e101127690303a88 100644 (file)
@@ -625,13 +625,14 @@ case "$host_os" in
                ;;
                *solaris*) AC_DEFINE(SUNOS5)
                        BLDSHARED="true"
-                       LDSHFLAGS="-Wl,-soname,\$@ -shared"
                        if test "${ac_cv_prog_CC}" = "gcc"; then
                                PICFLAG="-fPIC"
+                               LDSHFLAGS="-shared"
                        else
                                PICFLAG="-KPIC -xO4"
                                POBAD_CC=""
                                PICSUFFIX="po.o"
+                               LDSHFLAGS="-Wl,-soname,\$@"
                        fi
                ;;
                *sunos*) AC_DEFINE(SUNOS4)