summaryrefslogtreecommitdiff
path: root/scripts/build/internals.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/internals.sh')
-rw-r--r--scripts/build/internals.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/build/internals.sh b/scripts/build/internals.sh
index 84c8798..3e5ee5d 100644
--- a/scripts/build/internals.sh
+++ b/scripts/build/internals.sh
@@ -21,6 +21,19 @@ do_finish() {
CT_DoExecLog ALL chmod 755 "${CT_PREFIX_DIR}/bin/${CT_TARGET}-populate"
fi
+ if [ "${CT_LIBC_XLDD}" = "y" ]; then
+ CT_DoLog EXTRA "Installing a cross-ldd helper"
+ sed -r -e 's|@@CT_TARGET@@|'"${CT_TARGET}"'|g;' \
+ -e 's|@@CT_install@@|'"${install}"'|g;' \
+ -e 's|@@CT_bash@@|'"${bash}"'|g;' \
+ -e 's|@@CT_grep@@|'"${grep}"'|g;' \
+ -e 's|@@CT_make@@|'"${make}"'|g;' \
+ -e 's|@@CT_sed@@|'"${sed}"'|g;' \
+ "${CT_LIB_DIR}/scripts/xldd.in" \
+ >"${CT_PREFIX_DIR}/bin/${CT_TARGET}-ldd"
+ CT_DoExecLog ALL chmod 755 "${CT_PREFIX_DIR}/bin/${CT_TARGET}-ldd"
+ fi
+
# Create the aliases to the target tools
CT_DoLog EXTRA "Creating toolchain aliases"
CT_Pushd "${CT_PREFIX_DIR}/bin"