Kai Ruottu wrote :
Albert Chin wrote :
> How do I build gcc-4.0.2 on x86_64*-linux* so 32-bit libs are
> installed to $prefix/lib32 and 64-bit libs to $prefix/lib?
So your only choice without doing manual fixes to the FSF sources, is
to "marry
with" Ubuntu, use only its patched sources, and never try any pristine
FSF ones!
Those "manual fixes" to the sources are quite obvious though, the
"target Makefile
fragment", 'gcc/config/i386/t-linux64', has in it :
MULTILIB_OPTIONS = m64/m32
MULTILIB_DIRNAMES = 64 32
MULTILIB_OSDIRNAMES = ../lib64 ../lib
and changing this into :
MULTILIB_OPTIONS = m64/m32
MULTILIB_DIRNAMES = 64 32
MULTILIB_OSDIRNAMES = ../lib ../lib32
should succeed even for a newbie. This could sound being enough, but
then there
are things like :
#undef LINK_SPEC
#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} \
%{shared:-shared} \
%{!shared: \
%{!static: \
%{rdynamic:-export-dynamic} \
%{m32:%{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
%{!m32:%{!dynamic-linker:-dynamic-linker
/lib64/ld-linux-x86-64.so.2}}} \
%{static:-static}}"
in the 'gcc/config/i386/linux64.h' and maybe something else too...
That the 32-bit "command interpreter" or "dynamic linker" is in '/lib'
and that
the 64-bit one is in '/lib64', is also one part of the 'de-facto'
Linux/x86_64 standard,
so a 64-bit application made in Ubuntu searching its 64-bit
'ld-linux-x86-64.so.2'
from '/lib' and a 32-bit application made in Ubuntu searching its
'ld-linux.so.2'
from '/lib32' would simply clash with all the 32-bit Linux/x86's and
all the other
Linux/x86_64's installations....
Maybe there should be a totally separate 'x86_64-ubuntu-linux' target
in the
GCC sources and this target then considered being totally incompatible
with the
other Linux/x86 and Linux/x86_64 distros :-( The 'Ubuntu 6.0.6'
Install/Live-CD
told it at least using special Firefox 1.5.03, not the generic one from
the Mozilla.org,
but this doesn't yet prove anything. Interesting would be if running
those generic
Firefoxes and Thunderbirds, Skypes, X-Lites, Acrobat Readers etc.
wouldn't work,
but one should stay within the once tied "marriage"....