Fix building x86_64 on x86_64 (and hopefully all other *64 archs on the same *64):
- symlink all lib64/ dirs to the corresponding lib/ dir
Also, prevent gcc from installing some of its target libs outside of the sys-root, in the first place.
Thanks to Laurent DUFRECHOU for reporting the bug and testing the fix.
/trunk/scripts/build/cc_gcc.sh | 26 0 26 0 --------------------------
/trunk/scripts/crosstool.sh | 14 14 0 0 ++++++++++++++
2 files changed, 14 insertions(+), 26 deletions(-)
1 # Build script for strace
3 is_enabled="${CT_STRACE}"
6 [ "${CT_STRACE}" = "y" ] || return 0
7 echo "strace-${CT_STRACE_VERSION}"
10 do_debug_strace_get() {
11 CT_GetFile "strace-${CT_STRACE_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/strace/
12 # Downloading from sourceforge leaves garbage, cleanup
13 CT_Pushd "${CT_TARBALLS_DIR}"
14 rm -f showfiles.php\?group_id\=*
18 do_debug_strace_extract() {
19 CT_ExtractAndPatch "strace-${CT_STRACE_VERSION}"
22 do_debug_strace_build() {
23 CT_DoStep INFO "Installing strace"
24 mkdir -p "${CT_BUILD_DIR}/build-strace"
25 CT_Pushd "${CT_BUILD_DIR}/build-strace"
27 CT_DoLog EXTRA "Configuring strace"
29 "${CT_SRC_DIR}/strace-${CT_STRACE_VERSION}/configure" \
34 CT_DoLog EXTRA "Building strace"
37 CT_DoLog EXTRA "Installing strace"
38 CT_DoExecLog ALL make DESTDIR="${CT_DEBUG_INSTALL_DIR}" install