From: Tom Tromey <tom@tromey.com>
To: orbea via Gdb-patches <gdb-patches@sourceware.org>
Cc: orbea <orbea@riseup.net>
Subject: Re: [PATCH] gdb: Don't overwrite CC when checking for BFD support
Date: Fri, 21 Apr 2023 08:51:07 -0600 [thread overview]
Message-ID: <87354t1e78.fsf@tromey.com> (raw)
In-Reply-To: <20230419111628.0e1f33f0@Akita> (orbea via Gdb-patches's message of "Wed, 19 Apr 2023 11:16:28 -0700")
>>>>> orbea via Gdb-patches <gdb-patches@sourceware.org> writes:
> This can be solved by using the default value for CC instead where
> autotools is capable of providing an adequate value by default. I
> attached a patch doing this.
I applied this patch and re-ran autoconf, then tried a build.
It failed, and looking in gdb/config.log I see:
configure:28348: gcc -o conftest -I../../binutils-gdb/gdb/../include -I../bfd -I../../binutils-gdb/gdb/../bfd -g -O2 -L../bfd -L../libiberty conftest.c -lbfd -liberty -lncursesw -lm >&5
/bin/ld: cannot find -lbfd
... which is what I guess I would have predicted.
I think for ordinary gdb builds, using libtool here is required.
IIUC you are using some kind of libtool replacement. I don't know
exactly how but it seems to me that some other sort of fix is needed.
Perhaps the line:
CC="./libtool --quiet --mode=link $CC"
could also use whatever variable(s) you are setting to pass in your
alternative setup? Looking at your build log, I don't see anything
special passed to configure, so perhaps that also has to change on your
side.
Anyway, I'm sorry, but I don't think this patch can go in as-is.
thanks,
Tom
next prev parent reply other threads:[~2023-04-21 14:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-19 18:16 orbea
2023-04-21 14:51 ` Tom Tromey [this message]
2023-04-21 18:13 ` orbea
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=87354t1e78.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=orbea@riseup.net \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).