This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Cross-compiling from GNU/Linux to AIX
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Cross-compiling from GNU/Linux to AIX
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sun, 04 Feb 2001 21:07:38 -0800
- Cc: gcc at gcc dot gnu dot org
- Organization: CodeSourcery, LLC
It doesn't work.
../../gcc/collect2.c: In function `main':
../../gcc/collect2.c:1451: `LD_FINI_SWITCH' undeclared (first use in this function)
../../gcc/collect2.c:1451: (Each undeclared identifier is reported only once
../../gcc/collect2.c:1451: for each function it appears in.)
I'm a bit confused as to what's the right solution.
On an AIX native build, xm-rs6000.h defines COLLECT_EXPORT_LIST, which
means we don't end up in this code. It seems to me that either
LD_INIT_SWITCH should not be defined in aix43.h if cross-compiling.
Does that sound right to you?
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com