[Samba] [ANNOUNCE] Samba 3.2.2 Available for Download
Michael Adam
ma at sernet.de
Wed Aug 27 13:24:01 GMT 2008
Michael Adam wrote:
> Hi folks!
>
> Nicholas Brealey wrote:
> > James Kosin wrote:
> > >-----Original Message-----
> > >From: Daniel Eischen [mailto:eischen at vigrid.com]
> > >
> > >>Using -rpath/-R is the norm for Solaris packages. Samba
> > >>already is built with knowledge of where it is installed
> > >>and where its lib, data, var, etc directories reside.
> > >>
> > >>What is _not_ the norm, is having to set LD_LIBRARY_PATH in
> > >>order for your applications to work. Take a look at all
> > >>the packages at sunfreeware.com - they are all built for
> > >>/usr/local and, at least from hundred or so packages I've
> > >>installed from there, none require LD_LIBRARY_PATH to work
> > >>when their libraries are in /usr/local/lib.
>
> I had the plan to provide the option of linking with an
> rpath as a configure option. But it is not so easy to get
> it right for all supported platforms (Nicholas only mentioned
> solaris and Linux...). And I did not have the time yet to
> complete this in an upstream compliant manner.
>
> Patches welcome!!
To be more concrete:
I suggest adding a configure option "--enable-rpath"
that adds the appropriate LDFLAGS when appropriate for the
build system (e.g. solaris and linux for a start) and
gives notice when the system is unsupported (for rpath).
See
http://gitweb.samba.org/?p=samba.git;a=commit;h=3a0f781352f364ce625a35ffd78257b27d984c47
and
http://gitweb.samba.org/?p=samba.git;a=commitdiff;h=6850dc242b010bdcef5e427e51be04201f55b7f3
for what has already been in the sources and has been removed.
By the way: It is not strictly necessary to modify the sources to
create binaries linked with an rpath: By setting an appropriate
"LDFLAGS" environment variable containing an RPATH option before
calling configure, you can use an RPATH option for your install
without modifying the sources, since the configure script picks
up any externally set LDFLAGS and CFLAGS settings! ... :-)
Cheers - Michael
--
Michael Adam <ma at sernet.de> <obnox at samba.org>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 206 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba/attachments/20080827/10db4ff7/attachment.bin
More information about the samba
mailing list