[sc-users] #1797829: Trouble finding libs when using PREFIX
Stefan Kersten
sk at k-hornz.de
Fri Oct 26 15:05:49 PDT 2007
On 26.10.2007, at 13:50, nescivi wrote:
> On Friday 26 October 2007 12:22:42 Stefan Kersten wrote:
>> On 19.09.2007, at 14:38, Daniel Nouri wrote:
>>> elif PLATFORM == 'linux':
>>> langEnv.Append(
>>> - LINKFLAGS = '-Wl,-rpath,build')
>>> + LINKFLAGS = '-Wl,-rpath,build -Wl,-rpath,' +
>>> INSTALL_PREFIX + '/lib')
>>>
>>> merge_lib_info(langEnv, libraries['audioapi'])
>>
>> this looks like the right solution.
>
> it does not seem completely right, when using the default prefix:
>
> PREFIX = /usr/local
> DESTDIR = /
> INSTALL_PREFIX = $DESTDIR/$PREFIX
>
> so this results in a linkflag like:
> -Wl,-rpath, ///usr/local/lib
ah right, the linker should use PREFIX, not INSTALL_PREFIX.
INSTALL_PREFIX is for packagers, PREFIX is where the final
installation goes (and where the libs should be searched for). the
leading slashes shouldn't really matter for the linker ...
<sk>
More information about the sc-users
mailing list