Re: binutils 2.28 breaking libtool for test programs when -no-install is used
Thomas Jahns <[email protected]>
| Newsgroups | gmane.comp.gnu.libtool.general |
|---|---|
| Message-ID | <[email protected]> |
On 05/30/2017 12:02 PM, Vincent Lefevre wrote:
> Note that binutils 2.28 is breaking libtool for test programs
> ("make check") when -no-install is used. I've reported the
> following bug:
>
> https://sourceware.org/bugzilla/show_bug.cgi?id=21476
>
> The problem is that with this version, RUNPATH is used instead
> of RPATH in the executable generated by the linker, so that
> LD_LIBRARY_PATH now overrides the run path set up by libtool.
>
> I wonder whether libtool can do something as a workaround.
The error is your setting of LD_LIBRARY_PATH, if you want the old behaviour back
because you cannot get rid of LD_LIBRARY_PATH, consider adding
-Wl,--disable-new-dtags
to LDFLAGS. Setting LD_LIBRARY_PATH as some "permanent" solution is always an
error waiting to happen and indicative of something that went wrong beforehand.
I repeat: don't set LD_LIBRARY_PATH, that's the real problem, libtool not
working for you is just a symptom of that.
Regards, Thomas
_______________________________________________
https://lists.gnu.org/mailman/listinfo/libtool
smime.p7s
(application/pkcs7-signature, 4.6 KB) - not displayed