summarylogtreecommitdiffstats
path: root/mozconfig
blob: 1edbe709c8fb10791beb7faacb5c3b875cba2d9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
. $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=

# 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)*3/2))
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 --enable-update-channel=aurora

ac_add_options --with-app-name=waterfox-current
ac_add_options --with-app-basename="Waterfox Current"
ac_add_options --with-branding=browser/branding/waterfox
ac_add_options --with-distribution-id=net.waterfox

ac_add_options --enable-startup-notification
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-bz2
ac_add_options --with-system-png
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --with-system-icu
ac_add_options --enable-system-sqlite
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-webspeech=1
ac_add_options --disable-gpsd
ac_add_options --disable-debug
ac_add_options --disable-dmd
ac_add_options --disable-libproxy
ac_add_options --disable-crashreporter
ac_add_options --disable-eme
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-webrtc
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
ac_add_options --disable-signmar

# vim:set ft=sh: