diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-15 15:02:42 +0000 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-03-15 15:11:46 +0000 |
commit | b20da21c9dbf8d6d8b9d37111d34d77429876637 (patch) | |
tree | 3643b9822950132ae6cff5573c5df3ea4e241310 /baserock-bootstrap | |
parent | 190a2457ea1e9484017eb7a199dfb9c38536f0a3 (diff) | |
download | morph-b20da21c9dbf8d6d8b9d37111d34d77429876637.tar.gz |
Move pass1_file to the top right after pass1_zlib.
This fixes a strange issue where the file binary will segfault in
__libc_start_main() because it uses the host runtime dynamic linker
and not the on in /tree/tools. The host's ld-linux comes from eglibc
2.12 and the rtld_global_ro struct in 2.12 has a different size than the
one in eglibc 2.15. This, the _rtld_global_ro.dl_audit pointer gets
corrupted and __libc_start_main() segfaults.
This is miraculously fixed by building file immediately after zlib.
Diffstat (limited to 'baserock-bootstrap')
-rwxr-xr-x | baserock-bootstrap | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/baserock-bootstrap b/baserock-bootstrap index 7a3f9de2..d0bb4d5d 100755 --- a/baserock-bootstrap +++ b/baserock-bootstrap @@ -473,7 +473,7 @@ pass1_file() unpack file-5.09 cd "$sources/file-5.09" ./configure --prefix="$tools" - make -j$JOBS + make V=1 -j$JOBS # make check make install rm -rf "$sources/file-5.09" @@ -1124,6 +1124,7 @@ case "$buildwhat" in time pass1_gcc_2 time pass1_sanity_check time pass1_zlib + time pass1_file time pass1_ccache time pass1_ncurses #time pass1_busybox @@ -1131,7 +1132,6 @@ case "$buildwhat" in time pass1_bzip2 time pass1_coreutils time pass1_diffutils - time pass1_file time pass1_findutils time pass1_gawk time pass1_gettext |