summarylogtreecommitdiffstats
path: root/mozconfig
diff options
context:
space:
mode:
authorMatt Parnell2020-12-24 22:01:18 -0600
committerMatt Parnell2020-12-24 22:01:18 -0600
commit6f7f0fa155d429cf0696e4206bc1fa696c542ae4 (patch)
tree53baf79404f67cf8089eab01cb136fd925b2d92f /mozconfig
downloadaur-6f7f0fa155d429cf0696e4206bc1fa696c542ae4.tar.gz
initial commit - currently does not build, but faces same issue as icecat currently does - eta unknown
Diffstat (limited to 'mozconfig')
-rw-r--r--mozconfig99
1 files changed, 99 insertions, 0 deletions
diff --git a/mozconfig b/mozconfig
new file mode 100644
index 000000000000..576f25a489a3
--- /dev/null
+++ b/mozconfig
@@ -0,0 +1,99 @@
+. $topsrcdir/browser/config/mozconfig
+export CC=clang
+export CXX=clang++
+export AR=llvm-ar
+export NM=llvm-nm
+export RANLIB=llvm-ranlib
+#export MOZ_PGO=1
+mk_add_options AUTOCLOBBER=1
+
+export CPPFLAGS=""
+export CXXFLAGS=""
+export CFLAGS=""
+
+export MOZ_GECKO_PROFILER=
+export MOZ_ENABLE_PROFILER_SPS=
+export MOZ_PROFILING=
+export MOZ_MAINTENANCE_SERVICE=
+
+export MOZ_INCLUDE_SOURCE_INFO=1
+
+# a bit of extra hardening and optimization, edit to your tastes
+export LDFLAGS="-Wl,-O3,--no-omagic,--sort-common,--as-needed,--relax,-z,norelro,-z,combreloc,-z,global,-z,noexecstack,-z,now"
+ac_add_options --enable-optimize="-O3 -march=native -mtune=native -fcolor-diagnostics -w -fstack-protector-strong -fcf-protection=full -Wp,-D_GLIBCXX_ASSERTIONS -fno-plt"
+
+ac_add_options --target=x86_64-pc-linux-gnu
+mk_add_options AUTOCLOBBER=1
+
+if test `uname -s` = MINGW32_NT-6.2; then
+mk_add_options MOZ_MAKE_FLAGS=-j8
+else
+X=$(getconf NPROCESSORS_ONLN 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null)
+mk_add_options MOZ_MAKE_FLAGS=-j${X}
+fi
+
+ac_add_options "MOZ_ALLOW_LEGACY_EXTENSIONS=1"
+export MOZ_REQUIRE_SIGNING=0
+
+#ac_add_options MOZ_PGO=1
+ac_add_options --enable-strip
+ac_add_options --enable-hardening
+
+ac_add_options --prefix=/usr
+ac_add_options --libdir=/opt
+
+ac_add_options --enable-rust-simd # on x86 requires SSE2
+
+ac_add_options --enable-gold
+ac_add_options --enable-lto
+ac_add_options --enable-release
+ac_add_options --enable-application=browser
+ac_add_options --enable-eme=widevine
+
+ac_add_options --with-app-name=waterfox-g3
+ac_add_options --with-app-basename="Waterfox G3"
+ac_add_options --with-branding=browser/branding/waterfox
+ac_add_options --with-distribution-id=net.waterfox
+
+ac_add_options --enable-pulseaudio
+ac_add_options --enable-alsa
+
+# library and chrome format
+ac_add_options --enable-chrome-format=omni
+ac_add_options --x-libraries=/usr/lib
+
+# System libraries
+ac_add_options --with-system-nspr
+ac_add_options --with-system-nss
+ac_add_options --with-system-jpeg
+ac_add_options --with-system-zlib
+ac_add_options --with-system-libevent
+ac_add_options --with-system-libvpx
+ac_add_options --with-system-icu
+ac_add_options --enable-system-ffi
+ac_add_options --enable-system-pixman
+ac_add_options --enable-default-toolkit=cairo-gtk3
+
+# Features
+ac_add_options --disable-accessibility
+ac_add_options --disable-synth-speechd
+ac_add_options --disable-webspeechtestbackend
+ac_add_options --disable-cdp
+ac_add_options --disable-gpsd
+ac_add_options --disable-debug
+ac_add_options --disable-dmd
+ac_add_options --disable-geckodriver
+ac_add_options --disable-libproxy
+ac_add_options --disable-crashreporter
+ac_add_options --disable-js-shell
+ac_add_options --disable-updater
+ac_add_options --disable-verify-mar
+ac_add_options --disable-necko-wifi
+ac_add_options --disable-tests
+ac_add_options --disable-elf-hack
+ac_add_options --disable-mobile-optimize
+ac_add_options --disable-debug
+ac_add_options --disable-debug-symbols
+ac_add_options --disable-profiling
+
+# vim:set ft=sh: