summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2021-04-09 03:58:27 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2021-04-09 20:08:10 -0400
commitc676863f5ed5defb733ed5fd22ae44148d38544d (patch)
tree41609f724264f240de3890a1230e367220a2aea4
parent83a3062ca0f5a772afc48968486bd3e4fe7ca7ab (diff)
downloadabslibre-c676863f5ed5defb733ed5fd22ae44148d38544d.tar.gz
abslibre-c676863f5ed5defb733ed5fd22ae44148d38544d.tar.bz2
abslibre-c676863f5ed5defb733ed5fd22ae44148d38544d.zip
[iceweasel]: housekeeping
-rw-r--r--libre/iceweasel/PKGBUILD23
1 files changed, 12 insertions, 11 deletions
diff --git a/libre/iceweasel/PKGBUILD b/libre/iceweasel/PKGBUILD
index 319f6c010..8069a55e1 100644
--- a/libre/iceweasel/PKGBUILD
+++ b/libre/iceweasel/PKGBUILD
@@ -310,6 +310,7 @@ END
pushd browser/components/search/extensions
+ # Patch search-engines configs
sed -i 's|https://duckduckgo.com/|https://html.duckduckgo.com/html/|' ddg/manifest.json
# Removing URL parameters that let DuckDuckGo know the place in UI
@@ -374,6 +375,8 @@ END
build() {
cd firefox-$pkgver
+ ## build env ##
+
export MOZ_NOSPAM=1
export MOZBUILD_STATE_PATH="$srcdir/mozbuild"
export MACH_USE_SYSTEM_PYTHON=1
@@ -381,15 +384,15 @@ build() {
# LTO needs more open files
ulimit -n 4096
+ # clang-{9,10,11} -> error: unknown argument: '-fvar-tracking-assignments'
+ CFLAGS="${CFLAGS/-fvar-tracking-assignments/}"
+ CXXFLAGS="${CXXFLAGS/-fvar-tracking-assignments/}"
+
## [ARCH-SPECIFIC BUILD ENV] ##
case ${CARCH} in
armv7h)
- # clang-{9,10,11} -> error: unknown argument: '-fvar-tracking-assignments'
- CFLAGS="${CFLAGS/-fvar-tracking-assignments/}"
- CXXFLAGS="${CXXFLAGS/-fvar-tracking-assignments/}"
-
export MOZ_DEBUG_FLAGS=" "
export CFLAGS+=" -g0"
export CXXFLAGS+=" -g0"
@@ -413,16 +416,12 @@ build() {
export CXXFLAGS+=" -mmmx"
;;
x86_64)
- # clang-{9,10,11} -> error: unknown argument: '-fvar-tracking-assignments'
- CFLAGS="${CFLAGS/-fvar-tracking-assignments/}"
- CXXFLAGS="${CXXFLAGS/-fvar-tracking-assignments/}"
-
- export CFLAGS
- export CXXFLAGS
;;
*) echo "no [ARCH-SPECIFIC BUILD ENV] for arch: ${CARCH}" ; return 1 ;
;;
esac
+ export CFLAGS
+ export CXXFLAGS
## [ARCH-SPECIFIC BUILD CONFIG] ##
@@ -440,6 +439,9 @@ build() {
;;
esac
+
+ ## PGO build ##
+
if (( $_should_skip_pgo ))
then
# skipping "3-tier PGO" "instrumented browser", to avoid OOM problems;
@@ -576,4 +578,3 @@ END
ln -srfv "$pkgdir/usr/lib/libnssckbi.so" "$nssckbi"
fi
}
-