17.10.2012 18:01, Yves Blusseau пишет: > Le 17/10/2012 15:50, Andrew a écrit : >> 17.10.2012 15:07, Yves Blusseau пишет: >>> Le 17/10/2012 13:08, Andrew a écrit : >>>> I think that this patch will not break anything for 32bit toolchain. >>> It will because if you used -m32 it will look for lib in /usr/lib32 :( >>> >>> So we only need to patch the source only for 64bits arch. >>> >>> Yves >>> >> It'll look in lib32 only if gcc is compiled for 64bit support - as said >> in gcc/config/config.h comments. Other files are included for 64bit >> target system. >> If it fails for pure 32bit toolchain, we can try to leave config.h >> untouched. > It's seems to work. Can compile 32bit toolchain with the pure64 patch > applied: > > ./i486-unknown-linux-uclibc-gcc -print-multi-os-directory > . > ./i486-unknown-linux-uclibc-gcc -m64 -print-multi-os-directory > . > ./i486-unknown-linux-uclibc-gcc -m32 -print-multi-os-directory > . > ./i486-unknown-linux-uclibc-gcc -m32 -print-multi-lib > . > > But i need to understand how it can works :D. > I don't see any gcc/config/config.h. > Can you give me some tips to understand how it's works andrew ? > > Regards, > Yves Look at the staging/<arch>/toolchain/gcc-4.6.3/gcc/config/config.h - here it is. It's modified by patch. Actually, x86_64 toolchain must compile only x86_64 apps, so -m32 switch is useless. And for x86 and other 32bit toolchains config.h is only file that touches anything. There is still one question - about linker lib: it is /lib/ld64-uClibc.so.0 for 64bit and /lib/ld-uClibc.so.0 for 32bit; it's symlink for uClibc library. We can provide into initrd both links, and IMHO it'll be enough good - as far as we shouldn't mix 32bit and 64bit packages in one box.
------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct _______________________________________________ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel