This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: x86-64 with lib and lib64


Dan Kegel wrote:
Roman Duka wrote:

a silly question, for x86-64 targets we get 2 lib dirs, lib and lib64, does that mean that the SAME toolchain could produce 64 bit and 32 bit binaries?? and if yes how, by using compiler switches or something else?


Yes, with a compiler switch, though I haven't tried it myself.
Note however that you need to compile the C library once for
each architecture.

i'm trying to do it now, i think we need to pass --enable-multilib when configuring cross gcc for x86-64, however it fails with error on gcc-3.3.2, it says something about ld skipping incompatible libraries when linking with -lc etc ??? i've managed to built full x86-64 toolchain, but only with --disable-multilib options. well i'll try a snapshot of gcc-3.4.0, maybe that's different.



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


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