termux_setup_toolchain_gnu.sh: changing path location `$TERMUX_PREFIX/bin`

This commit is contained in:
Ivan Max 2023-09-13 20:55:46 +03:00 committed by GitHub
parent a649837ed1
commit 4b006c7875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -47,9 +47,12 @@ termux_setup_toolchain_gnu() {
export PKG_CONFIG_LIBDIR="$TERMUX_PKG_CONFIG_LIBDIR"
if [ "$TERMUX_ON_DEVICE_BUILD" = "false" ]; then
if ! $(echo "$PATH" | grep -q "^$TERMUX_STANDALONE_TOOLCHAIN/bin:$TERMUX_PREFIX/bin"); then
export PATH="$TERMUX_STANDALONE_TOOLCHAIN/bin:$TERMUX_PREFIX/bin:$PATH"
if ! $(echo "$PATH" | grep -q "^$TERMUX_STANDALONE_TOOLCHAIN/bin"); then
export PATH="$TERMUX_STANDALONE_TOOLCHAIN/bin:$PATH"
fi
if ! $(echo "$PATH" | grep -q "$TERMUX_PREFIX/bin"); then
export PATH="$PATH:$TERMUX_PREFIX/bin"
fi
fi
export CXXFLAGS="$CFLAGS -Wp,-D_GLIBCXX_ASSERTIONS"