diff options
author | Björn Jacke <bj@sernet.de> | 2010-05-07 11:56:38 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2010-05-17 09:50:18 +0200 |
commit | 2975e65e505c1d3c166bc1ee4be2f20a180086eb (patch) | |
tree | 167ed35acb78e0a131a78d56268a101d77f43ac3 /source3/configure.in | |
parent | 03f440071cf33aa24733f730cdfcded68c8b3e34 (diff) | |
download | samba-2975e65e505c1d3c166bc1ee4be2f20a180086eb.tar.gz |
s3:configure: use correct SONAMEFLAG on Solaris depending on which linker is being used
(cherry picked from commit 358a3855c20153d7fe742ca2e6b9bd8a9c92e525)
Fix bug #7385 (Can't compile. Undefined symbol 'main').
(cherry picked from commit 47e2bd2e29dca9cb5b503ae07f8935e70c687c71)
Diffstat (limited to 'source3/configure.in')
-rw-r--r-- | source3/configure.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in index 9672c934117..74a2479f482 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1519,11 +1519,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]) ;; |