diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2024-02-09 12:04:40 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2024-02-17 09:05:20 -0500 |
commit | c6c79fa1555b6b5b78e8701daa10de672ccc040b (patch) | |
tree | 34fe039ef42f496d0a59ede773bc274c3b12c0ab /libre/iceweasel/PKGBUILD | |
parent | 529cb9ec668cba1f943b98397ebde4fd3194346c (diff) |
iceweasel: tweak for armv7h
Diffstat (limited to 'libre/iceweasel/PKGBUILD')
-rw-r--r-- | libre/iceweasel/PKGBUILD | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/libre/iceweasel/PKGBUILD b/libre/iceweasel/PKGBUILD index fe12ca2f8..2e82e9168 100644 --- a/libre/iceweasel/PKGBUILD +++ b/libre/iceweasel/PKGBUILD @@ -235,7 +235,7 @@ readonly _SKIP_PGO=$(case "${CARCH}" in armv7h|i686) echo 1 ;; *) echo 0 ;; esac # use GCC vs LLVM # trying one or the other, may resolve sporadic compiler/linker discrepancies -readonly _USE_ALT_COMPILER=$(case "${CARCH}" in armv7h) echo 0 ;; *) echo 0 ;; esac) +readonly _USE_ALT_COMPILER=$(case "${CARCH}" in armv7h) echo 1 ;; *) echo 0 ;; esac) # use 'bfd' linker vs 'lld' # most significantly, this also disables LTO and debugging @@ -735,11 +735,16 @@ build() { export CFLAGS+=' -Wno-unused-command-line-argument' export CXXFLAGS+=' -Wno-unused-command-line-argument' + # FTBS with LLVM: - # warning: obj/dist/system_wrappers/cmath:3:15: fatal error: 'cmath' file not found if ! (( _USE_ALT_COMPILER )) - then export CFLAGS+=" -I/usr/include/c++/12.1.0 -I/usr/include/c++/12.1.0/armv7l-unknown-linux-gnueabihf" + then # warning: obj/dist/system_wrappers/cmath:3:15: fatal error: 'cmath' file not found + export CFLAGS+=" -I/usr/include/c++/12.1.0 -I/usr/include/c++/12.1.0/armv7l-unknown-linux-gnueabihf" export CXXFLAGS+=" -I/usr/include/c++/12.1.0 -I/usr/include/c++/12.1.0/armv7l-unknown-linux-gnueabihf" + + # clang-16: error: unknown argument: '-fvar-tracking-assignments' + export CFLAGS="${CFLAGS/-fvar-tracking-assignments/}" + export CXXFLAGS="${CXXFLAGS/-fvar-tracking-assignments/}" fi ;; i686) |