[sc-users] #1797829: Trouble finding libs when using PREFIX

nescivi nescivi at gmail.com
Fri Oct 26 14:50:21 PDT 2007


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

sincerely,
Marije


More information about the sc-users mailing list