From: Markus Deuling <deuling@de.ibm.com>
To: Pedro Alves <pedro_alves@portugalmail.pt>
Cc: GDB Patches <gdb-patches@sourceware.org>,
Ulrich Weigand <uweigand@de.ibm.com>
Subject: Re: [rfc] testsuite/lib/gdb.exp: Enable additional linker flags in gdb_compile_shlib
Date: Wed, 16 May 2007 09:38:00 -0000 [thread overview]
Message-ID: <464AD0C7.6030103@de.ibm.com> (raw)
In-Reply-To: <4053daab0705160227m592db5ecp9d876bfcb2025fae@mail.gmail.com>
Pedro Alves wrote:
> On 5/16/07, Markus Deuling <deuling@xxx> wrote:
>> I try to build a shared library using gdb_compile_shlib. The build is
>> done in two steps (compile and link).
>>
>> The testcase I work on adds
>> set lib_flags "$lib_flags additional_flags=-Wl,-Bsymbolic"
>> as an option to gdb_compile_shlib. The compile run quits with
>> gcc: -Bsymbolic: linker input file unused because linking not done
>> because the linker option is given to the compile run, too.
>>
>
> I've seen something similar before. Did you try using ldflags instead?
> I think those will only be used when linking.
>
> set lib_flags "$lib_flags ldflags=-Wl,-Bsymbolic"
>
> Cheers,
> Pedro Alves
>
Hi Pedro,
yes, it works with ldflags :-)
Thank you very much. I withdraw the Patch.
Have a nice day!
--
Markus Deuling
GNU Toolchain for Linux on Cell BE
deuling@de.ibm.com
prev parent reply other threads:[~2007-05-16 9:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-16 8:12 Markus Deuling
2007-05-16 9:28 ` Pedro Alves
2007-05-16 9:38 ` Markus Deuling [this message]
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=464AD0C7.6030103@de.ibm.com \
--to=deuling@de.ibm.com \
--cc=gdb-patches@sourceware.org \
--cc=pedro_alves@portugalmail.pt \
--cc=uweigand@de.ibm.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