Try and fix the Darwin build with dynamic libs.
authorMichael Adam <obnox@samba.org>
Wed, 13 Feb 2008 23:09:17 +0000 (00:09 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 13 Feb 2008 23:09:23 +0000 (00:09 +0100)
Golly gosh, this one took me quite some time to figure out!
Hopefully, I did not introduce any typos copying...

Michael

source/configure.in

index 9b3f5b9e3a7e83eb435fbae44193c9b6cc679b2f..25f52e484acdce3910dc9e7e6d86726c25e346fe 100644 (file)
@@ -1974,7 +1974,9 @@ DSO_EXPORTS=""
 
                *darwin*)   AC_DEFINE(DARWINOS,1,[Whether the host os is Darwin/MacOSX])
                        BLDSHARED="true"
-                       LDSHFLAGS="-bundle -flat_namespace -undefined suppress"
+                       LDSHFLAGS="-dynamiclib -flat_namespace -undefined suppress"
+                       CFLAGS="$CFLAGS -fno-common"
+                       SHLD="\${CC}"
                        SHLIBEXT="dylib"
                         MODULE_EXPORTS="-exported_symbols_list \$(srcdir)/exports/modules-darwin.syms"
                         SHLIBEXT="dylib"