diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-23 16:53:25 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-02-24 15:35:38 +0000 |
commit | 497344478f5789f6fc92ab913cb8321c6fdba20a (patch) | |
tree | ecd5b160f551da6fc8d110ff00591281be5535d2 /baserock-bootstrap | |
parent | 8b9840d0723af7c95946e9da995cd41e39f957b7 (diff) | |
download | morph-497344478f5789f6fc92ab913cb8321c6fdba20a.tar.gz |
Use eglibc instead of glibc in pass1.
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-x | baserock-bootstrap | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap index c11e88b9..22de47d6 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -185,6 +185,38 @@ pass1_glibc() } +pass1_eglibc() +{ + echo "Building eglibc" + if [ ! -e "$tools/lib/libc.so.6" ] + then + unpack eglibc-2.14 + cd "$sources/eglibc-2.14" + (cd libc && ln -s ../ports ports) + + $HOST_MKDIR "$sources/eglibc-build" + cd "$sources/eglibc-build" + + #echo "CFLAGS += -O2 -U_FORTIFY_SOURCE -fno-stack-protector" > configparms + + case `uname -m` in + i?86) echo "CFLAGS += -march=i486 -mtune=native" >> configparms ;; + esac + + ../eglibc-2.14/libc/configure --prefix="$tools" \ + --host=$LFS_TGT --build=$(../eglibc-2.14/scripts/config.guess) \ + --disable-profile --enable-add-ons \ + --enable-kernel=2.6.25 --with-headers="$tools/include" \ + --without-selinux --without-cvs \ + libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes libc_cv_ssp=no + + make -j$JOBS + make install + rm -rf "$sources/eglibc-2.14" + fi +} + + pass1_adjust_gcc_specs() { echo "Adjusting gcc specs file" @@ -1080,7 +1112,8 @@ case "$buildwhat" in pass1_binutils_1 pass1_gcc_1 pass1_linux_api_headers - pass1_glibc + #pass1_glibc + pass1_eglibc pass1_adjust_gcc_specs pass1_sanity_check pass1_binutils_2 |