On Thu, Jun 08, 2006 at 01:12:56PM +0300, Kai Ruottu wrote: > 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 Yeah, I saw this. > 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... Ok, thanks. I'll check out the changes required for the above. -- albert chin (china@xxxxxxxxxxxxxxxxxx)