summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-02-14 00:09:17 +0100
committerMichael Adam <obnox@samba.org>2008-02-14 00:09:23 +0100
commitf292f3de3fc2f9afaa9fdf1f6d894e8fc5e01dd4 (patch)
treea815b2326a7f3cbad2cee17b622ce143585b0614 /source3
parentd134bd3c27ba3317e323a2c37d43f80c0ec58cbc (diff)
downloadsamba-f292f3de3fc2f9afaa9fdf1f6d894e8fc5e01dd4.tar.gz
samba-f292f3de3fc2f9afaa9fdf1f6d894e8fc5e01dd4.tar.bz2
samba-f292f3de3fc2f9afaa9fdf1f6d894e8fc5e01dd4.zip
Try and fix the Darwin build with dynamic libs.
Golly gosh, this one took me quite some time to figure out! Hopefully, I did not introduce any typos copying... Michael (This used to be commit 85ca2c9edb9ac54d3fa18d6b343a73dda1d48040)
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 9b3f5b9e3a..25f52e484a 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -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"