[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -Wl,-rpath question

From: Bruno Haible
Subject: Re: -Wl,-rpath question
Date: Wed, 21 May 2003 19:36:33 +0200 (CEST)

> Quite a few packages using autotools seem to have the correct -L,
> but no -Wl,-R. Is it up to libtool to know whether an associated
> -rpath is necessary for each -L? or is it something one has to
> somehow write in ?

It's something you have to add yourself to your, depending
on where the needed library is found, and also depending on whether
the user desires hardcoded rpaths or not.

You find an autoconf macro that determines the right linker flags
(including -Wl,-rpath when libtool is not used, or including -R when
libtool is used) in the autoconf-lib-link subpackage of GNU gettext 0.12.

For your case of libjpeg you would just add


in configure.{in,ac} and then use @LIBJPEG@ or @LTLIBJPEG@ in your This macro invocation also adds the configuration options


to the configure file, so the user can customize the behaviour.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]