From 358a3855c20153d7fe742ca2e6b9bd8a9c92e525 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Fri, 7 May 2010 11:56:38 +0200 Subject: s3:configure: use correct SONAMEFLAG on Solaris depending on which linker is being used --- source3/configure.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'source3') 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]) ;; -- cgit