Skip to content

Commit

Permalink
toolchain: wrapper.sh: fix TOOLCHAIN_SYSROOT path
Browse files Browse the repository at this point in the history
62c1740 changed the location of the script from $(TOOLCHAIN_DIR)/usr
to $(TOOLCHAIN_DIR), but the TOOLCHAIN_SYSROOT used in wrapper.sh was
still expecting to find the script under usr/bin.

Fixes: 62c1740 toolchain: fix the sysroot mess by getting...
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
  • Loading branch information
cotequeiroz authored and pull[bot] committed Sep 3, 2023
1 parent 3f70207 commit 803f751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/toolchain/files/wrapper.sh
Expand Up @@ -46,7 +46,7 @@ TOOLCHAIN_BIN_DIR="$REALNAME_DIR/"
export PATH="$TOOLCHAIN_BIN_DIR":$PATH
export GCC_HONOUR_COPTS

TOOLCHAIN_SYSROOT="$TOOLCHAIN_BIN_DIR/../.."
TOOLCHAIN_SYSROOT="$TOOLCHAIN_BIN_DIR/.."
if [ ! -d "$TOOLCHAIN_SYSROOT" ]; then
echo "Error: Unable to determine sysroot (looking for $TOOLCHAIN_SYSROOT)!" >&2
exit 1
Expand Down

0 comments on commit 803f751

Please sign in to comment.