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]

[Fwd: Where are _modsi3.c and/or _modsi3.o?]


Christopher Bahns writes:
 > My question now is:
 > How can I link to the libgcc.a in the m68000 subdirectory without deleting the one
 > in the parent directory?

You're not specifying the command you're using to do the link
[at least I don't recall seeing it].

Assuming you're using gcc to do the link (which you should be doing :-),
specify -m68000.

The -m68000 tells gcc what cpu to generate code for, but it ALSO
tells gcc what libgcc to use with that generated code.

[It may be that you're not developing for the m68000 exactly.
I'm not up on all the m68k variants and the current state
of gcc support for them, but in principal the above is correct.]

------
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]