17.10.2012 13:20, Yves Blusseau пишет: > Hi all, > > I think i found the ultimate solution :) (after several hours searching > on the net). > The best is to create a toolchain that always used /usr/lib (instead of > /usr/lib64) on 64bits architecture. So nothing need to be change in > packages. > To do that we need to patch the gcc source a little for gcc 64bits > architecture with this patch from LFS: > http://trac.cross-lfs.org/browser/patches/gcc-4.6.3-pure64-1.patch > > It's apply successfully on our distribution and after > compiling/installing the x86_64-unknown-linux-uclibc toolchain i have: > > |./x86_64-unknown-linux-uclibc/bin/gcc -print-multi-os-directory > ../lib > ./x86_64-unknown-linux-uclibc/bin/gcc -m64 -print-multi-os-directory > ../lib > ./x86_64-unknown-linux-uclibc/bin/gcc -m32 -print-multi-os-directory > ../lib32| > > \O/ > > Now we need to find a solution to apply this patch only on 64bits > architecture. > One idea is to add a variable in > make/toolchain/x86_64-unknown-linux-uclibc.mk: > |export GCC_PURE64=yes| > > and in repo/toolchain/buildtool.mk > |$(GCC_DIR)/.source: > $(BT_SETUP_BUILDDIR) $(GCC_SOURCE) > test x$(GCC_PURE64) = xyes && cat $(GCC_PURE64_PATCH) | patch -p1 > -d $(GCC_DIR) > touch $(GCC_DIR)/.source > | > What do you think about this ? > > Yves I think that this patch will not break anything for 32bit toolchain.
------------------------------------------------------------------------------ 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