This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Checking for -rdynamic flag in gcc/configure
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: sje at cup dot hp dot com, gcc at gcc dot gnu dot org
- Date: Sat, 29 Aug 2009 11:51:39 +0000 (UTC)
- Subject: Re: Checking for -rdynamic flag in gcc/configure
- References: <200908282349.n7SNnK301767@lucas.cup.hp.com> <m3vdk7tphh.fsf@google.com>
On Fri, 28 Aug 2009, Ian Lance Taylor wrote:
> Link a small program with -rdynamic, one which defines a globally
> visible function which is not called. Run objdump -T and see if you can
> see that symbol in the output.
>
> If you follow this path you must do the in_tree_ld/ld_ver dance so that
> cross-compilers continue to work.
This is testing properties of the *host* linker (build-x-host in the
Canadian cross case), so in-tree tools (which will be built as
host-x-target) are irrelevant, and you can always assume that the host
tools are already installed (of course you need to make sure you use the
correct objdump, not that for build or target).
--
Joseph S. Myers
joseph@codesourcery.com