From 772ffe76fe241e1b4ec28c803977178076ce7357 Mon Sep 17 00:00:00 2001 From: James Peach Date: Fri, 20 Apr 2007 16:07:16 +0000 Subject: r22413: Simplify the build rules for plugin modules. Add support for per-platform exports files. Fix the shared library build pf pdb_ldap. (This used to be commit b04dee02d1965a1bf6eba39e809f0c9b33fbfcda) --- source3/configure.in | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/configure.in') diff --git a/source3/configure.in b/source3/configure.in index e652222d1b..1e9fca76f5 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -259,6 +259,7 @@ dnl Unique-to-Samba variables we'll be playing with. AC_SUBST(SAMBA_CPPFLAGS) AC_SUBST(SHELL) AC_SUBST(LDSHFLAGS) +AC_SUBST(MODULE_EXPORTS) AC_SUBST(SONAMEFLAG) AC_SUBST(SHLD) AC_SUBST(HOST_OS) @@ -1672,11 +1673,13 @@ BLDSHARED="false" # these are the defaults, good for lots of systems HOST_OS="$host_os" LDSHFLAGS="-shared" +MODULE_EXPORTS="" SONAMEFLAG="#" SHLD="\${CC} \${CFLAGS}" PICFLAG="${PIE_CFLAGS}" SHLIBEXT="so" + # this bit needs to be modified for each OS that supports share libs # You need to specify how to create a shared library and # how to compile C code to produce PIC object files @@ -1850,6 +1853,7 @@ case "$host_os" in *darwin*) AC_DEFINE(DARWINOS,1,[Whether the host os is Darwin/MacOSX]) BLDSHARED="true" LDSHFLAGS="-bundle -flat_namespace -undefined suppress" + MODULE_EXPORTS="-exported_symbols_list \$(srcdir)/modules/exports.darwin" SHLIBEXT="dylib" # Since gcc doesn't fail on unrecognised options, the # PIE test incorrectly succeeds. Darwin gcc does not -- cgit