Prevent rpath autoinstallation when compiling my program
I am working on a sample autotools project that creates a shared library and program. The program must link to a shared library. But when I build the program, libtool will install rpath
like this:
RPATH=/usr/local/lib
which I don't want.
According to the Debian Wiki libtool should not install rpath
when the library is in the default search path ( libtool role ).
Accordingly, the site /usr/local/lib
should be in the default search path for the linker.
The library and the program are created from the same autotools project, so the library is not installed when the program is built.
Does anyone have any ideas why libtool installs anyway rpath
?
source to share
No one has answered this question yet
See similar questions:
or similar: