linux->aix3.2 cross compiler
Costinel Mitrea
cmitrea@stecos.ro
Tue Mar 2 16:23:00 GMT 2004
Hi,
Thanks, that really helped. But now I have another problem. I'm trying to
cross-compile a library on linux for aix ( using cross gcc, ar,...) and it seems
it compiles ok. But when I try to link it on AIX system I got the message:
$ cc test.o thelib.a -o test
0706-721 ERROR: thelib.a is not an XCOFF object or archive
library is created as follows:
/usr/rs6000-ibm-aix3.2/bin/gcc -c thelib1.c
/usr/rs6000-ibm-aix3.2/bin/gcc -c thelib2.c
/usr/bin/aix3-ar rc thelib.a thelib1.o thelib2.o
/usr/bin/aix3-ranlib thelib.a
Thank you in advance.
Regards,
Costinel Mitrea
>
> Last year I tried something similar going from cygwin -> AIX 4.2 and
> also was stopped at the same place. I didn't have time to continue, but
> I think the solution is to include an explicit -rpath to the linker so
> it explicitly looks in /lib (or /usr/lib?) to find libc.a.
>
> -Nathan
>
>
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list