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
"Joseph S. Myers" <joseph@codesourcery.com> writes:
> 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).
Ah, you're quite right, sorry.
Ian