termux_setup_toolchain_gnu.sh: return it to how it was

This commit is contained in:
Ivan Max 2023-09-13 21:34:45 +03:00 committed by GitHub
parent af5ea43f22
commit 034f90add3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -47,12 +47,9 @@ 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"); then
export PATH="$TERMUX_STANDALONE_TOOLCHAIN/bin:$PATH"
if ! $(echo "$PATH" | grep -q "^$TERMUX_STANDALONE_TOOLCHAIN/bin:$TERMUX_PREFIX/bin"); then
export PATH="$TERMUX_STANDALONE_TOOLCHAIN/bin:$TERMUX_PREFIX/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"