This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: GCC Does Not Look At libc.a for PowerPC-EABI


Roger Racine wrote:
> 
> 1) Because I am using a tool that automatically calls gcc.  I have not yet
> figured out how (if it is possible) to pass the '-lc' to the linker at the
> right place using this tool (it seems to pass linker parameters at the
> front of the command, not at the end.  '-lc' needs to be at the end.
> 2) Because it should work without it.  That is what the configuration files
> are for.
> 3) Because others will be using the cross development system, and I do not
> want to make them have to add '-lc' to all their links.

Since you put it that way, look in
/usr/local/cygnus/ecosSWtools-990319/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.9-ecosSWtools-990319/specs
(<prefix>/lib/gcc-lib/<target>/<version>/specs) and add '-lc' to the end of the
'*link:' line.

-- 
__________________________________________
Matthew Majka - Systems/Software Engineer
Honeywell, Inc. (Defense Avionics Systems)
Albuquerque, New Mexico, USA

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]