Hi Björn,

> - Log -----------------------------------------------------------------
> commit 4243e6e3a904d2f3deb72a6ba456c49233d9af51
> Author: Björn Jacke <[email protected]>
> Date:   Tue Oct 20 08:01:52 2009 +0200
> 
>     s3:configure: add support for Solaris' ld -z ignore
>     
>     try linker flags for ignoring unused libs in this order:
>     -Wl,--as-needed (gcc like + binutils)
>     -Wl,-z,ignore (gcc like + Solaris linker)
>     -z ignore (old Sun C)

> -# Linker command to link a RPC, VFS, AUTH, CHARSET or PASSDB module.
> +# Linker command to link our shared libraries:
>  SHLD_MODULE = $(SHLD) $(LDSHFLAGS) $(MODULE_EXPORTS) \
>             -o $@ @sonamef...@`basename $...@`
> +# Linker command to link samba internal plugin modules:
> +SHLD_PLUGIN = $(SHLD) $(LDPLUGINFLAGS) $(MODULE_EXPORTS) \
> +     -o $@ @sonamef...@`basename $...@`
>  

Instead of using SHLD_PLUGIN for modules, we should keep
SHLD_MODULE, but use a new SHLD_LIBRARY for shared libraries.

It would also be nice to use

AC_LIBREPLACE_SHLD
AC_LIBREPLACE_SHLD_FLAGS

and

AC_LIBREPLACE_MDLD
AC_LIBREPLACE_MDLD_FLAGS

from libreplace. There we could also add the sun specifc flags genericly
for source3 and source4.

metze

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to