summaryrefslogtreecommitdiff
path: root/libre/iceweasel/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/iceweasel/PKGBUILD')
-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
}
-