aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/firefox/abuild
diff options
context:
space:
mode:
Diffstat (limited to 'repos/extra/firefox/abuild')
-rw-r--r--repos/extra/firefox/abuild15
1 files changed, 9 insertions, 6 deletions
diff --git a/repos/extra/firefox/abuild b/repos/extra/firefox/abuild
index 64d2fed5..35510688 100644
--- a/repos/extra/firefox/abuild
+++ b/repos/extra/firefox/abuild
@@ -1,19 +1,16 @@
name=firefox
-version=134.0.2
+version=135.0
release=1
source="https://ftp.mozilla.org/pub/${name}/releases/${version}/source/${name}-${version}.source.tar.xz
fix-target-detection.patch"
build() {
- export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=system
- export MOZBUILD_STATE_PATH=${PWD}/mozbuild
-
cat > .mozconfig << EOF
ac_add_options --prefix=/usr
ac_add_options --libdir=/usr/lib
ac_add_options --enable-strip
ac_add_options --enable-release
-#ac_add_options --enable-rust-simd
+ac_add_options --enable-rust-simd
ac_add_options --enable-audio-backends=alsa
ac_add_options --enable-install-strip
ac_add_options --enable-official-branding
@@ -25,7 +22,7 @@ ac_add_options --with-system-libvpx
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-pixman
-ac_add_options --without-system-png
+ac_add_options --with-system-png
ac_add_options --with-system-webp
ac_add_options --with-system-zlib
ac_add_options --without-wasm-sandboxed-libraries
@@ -58,9 +55,15 @@ EOF
PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
fi
+ export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none
+ export MOZBUILD_STATE_PATH=${PWD}/mozbuild
+
export CFLAGS="$CFLAGS -w"
export CXXFLAGS="$CXXFLAGS -w"
export LDFLAGS="$LDFLAGS -Wl,-rpath=/usr/lib/firefox,--enable-new-dtags"
+ export RUSTFLAGS="$RUSTFLAGS -Cdebuginfo=0"
+ export MOZ_DEBUG_FLAGS=-g0
+ export MOZ_NOSPAM=1
./mach build
./mach install