[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Gentoo GCC multilib



Alan Hourihane wrote:
bash# m68k-atari-mint-gcc -v -mshort -o main main.c

The only significant difference I see is on the collect2 (ld wrapper) command line:

Gentoo:
-L/usr/lib/gcc/m68k-atari-mint/4.5.2
-L/usr/lib/gcc/m68k-atari-mint/4.5.2/../../../../m68k-atari-mint/lib

Cygwin:
-L/opt/cross-mint/lib/gcc/m68k-atari-mint/4.5.2/mshort
-L/opt/cross-mint/lib/gcc/m68k-atari-mint/4.5.2/../../../../m68k-atari-mint/lib/mshort
-L/opt/cross-mint/lib/gcc/m68k-atari-mint/4.5.2
-L/opt/cross-mint/lib/gcc/m68k-atari-mint/4.5.2/../../../../m68k-atari-mint/lib

We can see that on Cygwin the mshort libdirs are prepended, while on Gentoo they are lost. Everything else is correct.

If I'm not wrong that command line is built by the "gcc" command.

Really, I wonder if Gentoo's multilib support has not been hacked to match their guidelines, something like Patrice's patch to avoid mixing different multilibs. I don't say multilib does not work on Gentoo, but maybe it works differently, so it may require different patching for MiNT.

--
Vincent Rivière