mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-22 09:40:56 +00:00
/devel/gcc-4.4:
- ./configure: check for 'stat', needing to install the tools wrapper - wrapper: make it a POSIX-compliant script, restore relocatability - don't install the wrapper for symlinks -------- diffstat follows -------- /devel/gcc-4.4/configure | 1 1 0 0 + /devel/gcc-4.4/scripts/build/internals.sh | 22 16 6 0 ++++++++++++++++------ /devel/gcc-4.4/scripts/wrapper.in | 5 2 3 0 ++--- 3 files changed, 19 insertions(+), 9 deletions(-)
This commit is contained in:
parent
d9e898bdbc
commit
a07693b13c
1
configure
vendored
1
configure
vendored
@ -337,6 +337,7 @@ has_or_abort prog=automake
|
|||||||
has_or_abort prog=libtool \
|
has_or_abort prog=libtool \
|
||||||
ver='\(GNU libtool.*\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)' \
|
ver='\(GNU libtool.*\) (2[[:digit:]]*\.|1\.6[[:digit:]]*\.|1\.5\.[2-9][[:digit:]]+)' \
|
||||||
err="'libtool' 1.5.26 or above was not found"
|
err="'libtool' 1.5.26 or above was not found"
|
||||||
|
has_or_abort prog=stat ver='GNU coreutils'
|
||||||
has_or_abort prog="curl wget"
|
has_or_abort prog="curl wget"
|
||||||
has_or_abort prog=cvs
|
has_or_abort prog=cvs
|
||||||
has_or_abort prog=patch
|
has_or_abort prog=patch
|
||||||
|
@ -47,14 +47,24 @@ do_finish() {
|
|||||||
-o "${CT_PPL_CLOOG_MPC}" = "y" ]; then
|
-o "${CT_PPL_CLOOG_MPC}" = "y" ]; then
|
||||||
CT_DoLog EXTRA "Installing toolchain wrappers"
|
CT_DoLog EXTRA "Installing toolchain wrappers"
|
||||||
CT_Pushd "${CT_PREFIX_DIR}/bin"
|
CT_Pushd "${CT_PREFIX_DIR}/bin"
|
||||||
sed -r -e 's|@@CT_bash@@|'"${bash}"'|g;' \
|
|
||||||
"${CT_LIB_DIR}/scripts/wrapper.in" \
|
# Copy the wrapper
|
||||||
>".${CT_TARGET}-wrapper"
|
CT_DoExecLog DEBUG install -m 0755 "${CT_LIB_DIR}/scripts/wrapper.in" \
|
||||||
CT_DoExecLog ALL chmod 755 ".${CT_TARGET}-wrapper"
|
".${CT_TARGET}-wrapper"
|
||||||
|
|
||||||
|
# Replace every tools with the wrapper
|
||||||
|
# Do it unconditionally, even for those tools that happen to be shell
|
||||||
|
# scripts, we don't know if they would in the end spawn a binary...
|
||||||
|
# Just skip symlinks
|
||||||
for t in "${CT_TARGET}-"*; do
|
for t in "${CT_TARGET}-"*; do
|
||||||
|
if [ "$( LANG=C stat -c '%F' "${t}" )" != "symbolic link" ]; then
|
||||||
CT_DoExecLog ALL mv "${t}" ".${t}"
|
CT_DoExecLog ALL mv "${t}" ".${t}"
|
||||||
CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${t}"
|
CT_DoExecLog ALL ln ".${CT_TARGET}-wrapper" "${t}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Get rid of the wrapper, we're using hardlinks
|
||||||
|
CT_DoExecLog DEBUG rm -f ".${CT_TARGET}-wrapper"
|
||||||
CT_Popd
|
CT_Popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
#!@@CT_bash@@
|
#!/bin/sh
|
||||||
# There are bashisms on the last line
|
|
||||||
|
|
||||||
dirname="$(dirname "${0}")"
|
dirname="$(dirname "${0}")"
|
||||||
basename="$(basename "${0}")"
|
basename="$(basename "${0}")"
|
||||||
@ -12,4 +11,4 @@ case ":${LD_LIBRARY_PATH}:" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
export LD_LIBRARY_PATH
|
export LD_LIBRARY_PATH
|
||||||
exec -a "${basename}" "${dirname}/.${basename}" "$@"
|
exec "${dirname}/.${basename}" "$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user