Skip to content

Commit

Permalink
Update patches
Browse files Browse the repository at this point in the history
  • Loading branch information
truboxl committed Jun 21, 2024
1 parent dad9fe5 commit 458ffd4
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions termux-packages.arm-vfpv3-d16.lf.patch
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,45 @@ index 7b9be5459..9e99b2fd3 100644
LDFLAGS+=" -march=armv7-a"
export GOARCH=arm
export GOARM=7
diff --git a/scripts/build/setup/termux_setup_no_integrated_as.sh b/scripts/build/setup/termux_setup_no_integrated_as.sh
index f4d02ec6c..814c11c3b 100644
--- a/scripts/build/setup/termux_setup_no_integrated_as.sh
+++ b/scripts/build/setup/termux_setup_no_integrated_as.sh
@@ -28,18 +28,27 @@ termux_setup_no_integrated_as() {
for env in CC CXX; do
local cmd="$(eval echo \${$env})"
local w="$bin/$(basename "$cmd")"
- if [ ! -e "$w" ]; then
- cat > "$w" <<-EOF
- #!$(command -v sh)
- PATH="$binutils_cross_bin:\$PATH"
- exec "$(command -v "$cmd")" \
- --start-no-unused-arguments \
- -fno-integrated-as \
- --end-no-unused-arguments \
- "\$@"
+ if [ -e "$w" ]; then return; fi
+ if [[ "$(${cmd} -dumpversion | sed "s|\..*||")" -ge 14 ]]; then
+ cat > "$w" <<- EOF
+ #!$(command -v sh)
+ PATH="$binutils_cross_bin:\$PATH"
+ exec "$(command -v "$cmd")" \
+ --start-no-unused-arguments \
+ -fno-integrated-as \
+ --end-no-unused-arguments \
+ "\$@"
+ EOF
+ else
+ cat > "$w" <<- EOF
+ #!$(command -v sh)
+ PATH="$binutils_cross_bin:\$PATH"
+ exec "$(command -v "$cmd")" \
+ -fno-integrated-as \
+ "\$@"
EOF
- chmod 0700 "$w"
fi
+ chmod 0700 "$w"
done
export PATH="$bin:$PATH"
}

0 comments on commit 458ffd4

Please sign in to comment.