svn commit: samba r23689 - in branches/SAMBA_3_0/source: . exports

James Peach jpeach at samba.org
Tue Jul 3 20:02:39 GMT 2007


On Jul 3, 2007, at 12:55 PM, jerry at samba.org wrote:

> Author: jerry
> Date: 2007-07-03 19:55:02 +0000 (Tue, 03 Jul 2007)
> New Revision: 23689
>
> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23689
>
> Log:
> Squashed commit of the following:
>
> commit 0d4bbd197198a94bf4e29e0ccd175a40a60097f3
> Author: Gerald (Jerry) Carter <jerry at samba.org>
> Date:   Mon Jul 2 20:08:19 2007 -0500
>
>    Introduce GNU ld linker export-script for hiding non-public symbols
>    in shared libraries.
>
>    Based on initial patch from Julien Cristau <jcristau at debian.org>
>    and suggestions from James Peach <jpeach at samba.org>.  Currently
>    the libsmbsharemodes libraries still exports *.  Signed off on
>    my Derrell as well.
>
> Added:
>   branches/SAMBA_3_0/source/exports/
>   branches/SAMBA_3_0/source/exports/libsmbclient.syms
>   branches/SAMBA_3_0/source/exports/libsmbsharemodes.syms
>   branches/SAMBA_3_0/source/library-versions.in
> Modified:
>   branches/SAMBA_3_0/source/Makefile.in
>   branches/SAMBA_3_0/source/configure.in
>
>
> Changeset:
> Modified: branches/SAMBA_3_0/source/Makefile.in
> ===================================================================
> --- branches/SAMBA_3_0/source/Makefile.in	2007-07-03 18:00:54 UTC  
> (rev 23688)
> +++ branches/SAMBA_3_0/source/Makefile.in	2007-07-03 19:55:02 UTC  
> (rev 23689)
> @@ -21,6 +21,12 @@
> CC=@CC@
> SHLD=@SHLD@
>
> +## Dynamic shared libraries build settings
> +DSO_EXPORTS_CMD=-Wl,--version-script,exports/`basename $@ | sed 's/ 
> @SHLIBEXT@$$/syms/'`
> +DSO_EXPORTS=@DSO_EXPORTS@
> +SONAME_VER=`grep ^$@ $(srcdir)/library-versions | cut -d: -f2`
> +SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(DSO_EXPORTS)

You should be able to make this

SHLD_DSO = $(SHLD) $(LDSHFLAGS) $(LDFLAGS) $(DSO_EXPORTS) -o $@

--
James Peach | jpeach at samba.org



More information about the samba-technical mailing list