Linking Shared Libraries and Modules (Re: [SCM] Samba Shared Repository - branch master updated)

Stefan (metze) Metzmacher metze at samba.org
Tue Oct 20 05:28:14 MDT 2009


Hi Björn,

> - Log -----------------------------------------------------------------
> commit 4243e6e3a904d2f3deb72a6ba456c49233d9af51
> Author: Björn Jacke <bj at sernet.de>
> 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 $@ @SONAMEFLAG@`basename $@`
> +# Linker command to link samba internal plugin modules:
> +SHLD_PLUGIN = $(SHLD) $(LDPLUGINFLAGS) $(MODULE_EXPORTS) \
> +	-o $@ @SONAMEFLAG@`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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-cvs/attachments/20091020/e4416cf8/attachment.pgp>


More information about the samba-cvs mailing list