mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-07 02:11:33 +01:00
Merge pull request #1218 from marineam/config-wrapper
scripts: do not include board binaries in $PATH
This commit is contained in:
commit
47cd160e0e
@ -40,11 +40,9 @@ if [[ -z ${CHOST} ]] || [[ -z ${SYSROOT} ]] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PATH="${SYSROOT}/usr/bin:${PATH}"
|
|
||||||
|
|
||||||
# Some wrappers will dynamically figure out where they're being run from,
|
# Some wrappers will dynamically figure out where they're being run from,
|
||||||
# and then output a full path -I/-L path based on that. So we trim any
|
# and then output a full path -I/-L path based on that. So we trim any
|
||||||
# expanded sysroot paths that might be in the output already to avoid
|
# expanded sysroot paths that might be in the output already to avoid
|
||||||
# having it be -L${SYSROOT}${SYSROOT}/usr/lib.
|
# having it be -L${SYSROOT}${SYSROOT}/usr/lib.
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
exec ${cfg} "$@" | sed -r "s:(-[IL])(${SYSROOT})?:\1${SYSROOT}:g"
|
exec ${SYSROOT}/usr/bin/${cfg} "$@" | sed -r "s:(-[IL])(${SYSROOT})?:\1${SYSROOT}:g"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user