From: Björn Jacke Date: Fri, 7 May 2010 09:56:38 +0000 (+0200) Subject: s3:configure: use correct SONAMEFLAG on Solaris depending on which linker is being... X-Git-Tag: samba-3.6.0pre1~2185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=358a3855c20153d7fe742ca2e6b9bd8a9c92e525;p=thirdparty%2Fsamba.git s3:configure: use correct SONAMEFLAG on Solaris depending on which linker is being used --- diff --git a/source3/configure.in b/source3/configure.in index 330e2e85edb..61e60a11b6f 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]) ;;