This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: import newer Libtool?
- From: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>
- To: Paolo Bonzini <bonzini at gnu dot org>, binutils at sourceware dot org, gdb-patches at sourceware dot org
- Cc: Richard Guenther <richard dot guenther at gmail dot com>, gcc-patches at gcc dot gnu dot org, John David Anglin <dave dot anglin at nrc-cnrc dot gc dot ca>
- Date: Thu, 13 Jan 2011 19:53:27 +0100
- Subject: Re: import newer Libtool?
- References: <20110110070111.GC24102@gmx.de> <4D2ABF80.1080201@gnu.org> <AANLkTim+DQq1OU1An9BVhoNHQbdR05Y3ZUHOTznrA+f7@mail.gmail.com> <AANLkTin0pR4tb8kFvEdSgLiDMk2kgNXwT7J3JS9LPncc@mail.gmail.com> <AANLkTikM2=gNYaFJuDmTkif2TCqeHQGHbcXgZZhSuNA9@mail.gmail.com> <20110110182426.GA15069@gmx.de> <20110112173553.GA26529@gmx.de> <4D2EC087.2000403@gnu.org>
* Paolo Bonzini wrote on Thu, Jan 13, 2011 at 10:06:15AM CET:
> On 01/12/2011 06:35 PM, Ralf Wildenhues wrote:
> >>> - linking/testing/installing on HP-UX should work again
> >>> <http://gcc.gnu.org/ml/gcc-patches/2010-12/msg00893.html>,
> >In that case I'd still like to ask for committing the above one-line
> >patch to trunk right away; it had been submitted in time but we simply
> >didn't get it analyzed in time. I think that it may even be considered
> >a regression because due to libquadmath not existing in 4.5 GCC did not
> >have this issue before. OK?
>
> That's okay if the patch is in upstream Libtool.
Yes, it is. I've pushed it now in John's name, and am merging to src.
Thanks,
Ralf
Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L.
2011-01-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* ltmain.sh (relink): Use absolute path when hardcoding with -L.
diff --git a/ltmain.sh b/ltmain.sh
index cba8b4c..a03433f 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -5928,7 +5928,7 @@ func_mode_link ()
test "$hardcode_direct_absolute" = no; then
add="$dir/$linklib"
elif test "$hardcode_minus_L" = yes; then
- add_dir="-L$dir"
+ add_dir="-L$absdir"
# Try looking first in the location we're being installed to.
if test -n "$inst_prefix_dir"; then
case $libdir in