summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-05-07 11:56:38 +0200
committerBjörn Jacke <bj@sernet.de>2010-05-07 11:58:09 +0200
commit358a3855c20153d7fe742ca2e6b9bd8a9c92e525 (patch)
tree2dce52a54962ede005cd7e5b6ca7716174f59f96
parent4ad1943d29a273ad3770e7abd5f266c25608eb39 (diff)
downloadsamba-358a3855c20153d7fe742ca2e6b9bd8a9c92e525.tar.gz
samba-358a3855c20153d7fe742ca2e6b9bd8a9c92e525.tar.bz2
samba-358a3855c20153d7fe742ca2e6b9bd8a9c92e525.zip
s3:configure: use correct SONAMEFLAG on Solaris depending on which linker is being used
-rw-r--r--source3/configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 330e2e85ed..61e60a11b6 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -1562,11 +1562,15 @@ DSO_EXPORTS=""
LDSHFLAGS="-shared"
else
PICFLAG="-KPIC"
- SONAMEFLAG="-h "
## ${CFLAGS} added for building 64-bit shared
## libs using Sun's Compiler
LDSHFLAGS="-G \${CFLAGS}"
fi
+ if test "$ac_cv_prog_gnu_ld" = "yes"; then
+ SONAMEFLAG="-Wl,-soname="
+ else
+ SONAMEFLAG="-Wl,-h,"
+ fi
AC_DEFINE(STAT_ST_BLOCKSIZE,512,[The size of a block])
AC_DEFINE(BROKEN_GETGRNAM,1,[Does getgrnam work correctly])
;;