From 627cb8be2798718b946162c857f1ead9517b84a1 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 05 Jan 2012 03:27:47 -0500 Subject: Add cross-compiling EGLIBC instructions. --- (limited to 'temporary-bootstrap-builder-setup.txt') diff --git a/temporary-bootstrap-builder-setup.txt b/temporary-bootstrap-builder-setup.txt index 50a715d..cffbeeb 100644 --- a/temporary-bootstrap-builder-setup.txt +++ b/temporary-bootstrap-builder-setup.txt @@ -205,3 +205,25 @@ Configure and build a cross-compiling GCC. $ make install-gcc install-target-libgcc $ cd .. $ rm -Rf gcc-4.6.2 + +Configure and build a cross-compiling EGLIBC. Change '' to the +lower of either version 3.1.6 or the version of Linux running on your host +system. + $ cp -pR ${BBL}/../../src/eglibc-2.14 . + $ cd eglibc-2.14/libc + $ cp -v Makeconfig{,.orig} + $ sed -e 's/-lgcc_eh//g' Makeconfig.orig > Makeconfig + $ cd ../.. + $ mkdir -v eglibc-build + $ cd eglibc-build + $ BUILD_CC=gcc CC=${BBL_TARGET}-gcc AR=${BBL_TARGET}-ar \ + > RANLIB=${BBL_TARGET}-ranlib \ + > CFLAGS="-march=$(cut -d - -f 1 <<< ${BBL_TARGET} | sed 's/x86_64/x86-64/') \ + > -mtune=generic -g -O2" ../eglibc-2.14/libc/configure --prefix=/usr \ + > --libexecdir=/usr/lib/eglibc --host=${BBL_TARGET} --build=${BBL_HOST} \ + > --disable-profile --enable-add-ons --with-tls --enable-kernel=3.1.0 \ + > --with-__thread --with-binutils=${BBL}/cross-tools/bin \ + > --with-headers=${BBL}/usr/include libc_cv_forced_unwind=yes \ + > libc_cv_c_cleanup=yes libc_cv_gnu89_inline=yes install_root=${BBL} + $ make + $ make install -- cgit v0.9.1