mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-17 23:08:16 +00:00
scripts: add a cross-ldd-like
Add a cross-ldd that mimicks a native ldd.
This commit is contained in:
@ -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"
|
||||
|
Reference in New Issue
Block a user