From: Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: wrong bfd recognized
Date: Wed, 21 Dec 2011 12:24:00 -0000 [thread overview]
Message-ID: <CAB88xy_pazeRmxwmr+k11ETdLmBFdbf9T25yRqJZ5Pfwi9SU4g@mail.gmail.com> (raw)
In-Reply-To: <m37h1rmguq.fsf@fleche.redhat.com>
Hi Tom,
After a check, I've noticed that LDFLAGS is set -L/usr/local/lib in
order to use libreadline installed there.
It's possible to have several libreadline installed and LDFLAGS is the
only way to specify which library to use.
On details. FreeBSD could have a libreadline provided by the system
and a libreadline provided by ports (different versions, license,
ecc.)
So, if LDFLAGS is set, then the gdb's libbfd is not used, but the
/usr/local/lib one's.
I'm not totally sure, but I guess that this behavior is not properly correct.
Am I missing some contraindication or a way to point the right libreadline?
thanks in advance for the help
Luca
On Tue, Dec 20, 2011 at 3:56 PM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Luca" == Luca Pizzamiglio <luca.pizzamiglio@gmail.com> writes:
>
> Luca> I've found a strange situation where gdb's configure script fails to
> Luca> use libbfd and disable ELF support.
> Luca> the problem was that during configuration, the /usr/local/lib/libbfd.a
> Luca> was used, instead of the gdb's one. This library was compiled with
> Luca> libintl support, then the bfd's test program build failed.
>
> Are you adding -L/usr/local/lib to LDFLAGS?
> If so -- why?
>
> Luca> This patch should solve this issue, building bfd's testing program
> Luca> using the gdb's one.
>
> I wonder whether it would break something.
>
> If you can find another spot in the src configury that does it this way,
> I guess I'd be more inclined to just do it.
>
> This needs a ChangeLog entry.
>
> Tom
next prev parent reply other threads:[~2011-12-21 11:58 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-13 15:29 Luca Pizzamiglio
2011-12-20 14:58 ` Tom Tromey
2011-12-21 12:24 ` Luca Pizzamiglio [this message]
2011-12-21 18:50 ` Tom Tromey
2011-12-29 12:18 ` Luca Pizzamiglio
2011-12-29 19:02 ` Joel Brobecker
2012-01-02 10:04 ` Luca Pizzamiglio
2012-02-06 19:33 ` Tom Tromey
2012-02-07 16:25 ` Luca Pizzamiglio
2012-02-07 20:15 ` Pedro Alves
2012-02-10 13:55 ` Pedro Alves
2012-02-10 13:59 ` Luca Pizzamiglio
2012-02-10 14:02 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAB88xy_pazeRmxwmr+k11ETdLmBFdbf9T25yRqJZ5Pfwi9SU4g@mail.gmail.com \
--to=luca.pizzamiglio@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox