Alan Hourihane wrote:
This is a test using the native gcc on Gentoo with -m32 to compile a 32bit binary on a 64bit system. Notice that it does correctly append "lib32" to the collect2 options.
Indeed.Thanks to Patrice's patch, we know that the list of the -L options is built here, in the function for_each_path() on line 2528:
http://gcc.gnu.org/viewcvs/branches/gcc-4_5-branch/gcc/gcc.c?view=markup You can try to use gdb on that code, or add traces... Good luck. -- Vincent Rivière