[Samba] [ANNOUNCE] Samba 3.2.2 Available for Download
eischen at vigrid.com
Wed Aug 27 16:32:38 GMT 2008
On Wed, 27 Aug 2008, Michael Adam wrote:
> 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).
Yes, it if is not on be default, then having a knob to enable
it is the next best thing.
> 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! ... :-)
That is nice to know too.
More information about the samba