blob: b92df2cdbb4eb8f11c89d23c21f400f6a32cea62 (
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
|
ac_add_options --enable-application=browser
export MOZ_APP_REMOTINGNAME=${pkgname//-/}
# Compiler and Linker
ac_add_options --prefix=/usr
ac_add_options --enable-release
ac_add_options --disable-hardening
ac_add_options --enable-optimize
ac_add_options --enable-rust-simd
ac_add_options --enable-linker=lld
ac_add_options --disable-elf-hack
ac_add_options --enable-lto=full
# # pacman can handle stripping
# ac_add_options --enable-strip
# ac_add_options --enable-install-strip
export CC='clang --target=x86_64-unknown-linux-gnu'
export CXX='clang++ --target=x86_64-unknown-linux-gnu'
export AR=llvm-ar
export NM=llvm-nm
export RANLIB=llvm-ranlib
# Branding
ac_add_options --enable-official-branding
ac_add_options --enable-update-channel=release
ac_add_options --with-distribution-id=org.artixlinux
ac_add_options --with-unsigned-addon-scopes=app,system
ac_add_options --allow-addon-sideload
ac_add_options MOZ_TELEMETRY_REPORTING=
export MOZILLA_OFFICIAL=1
export MOZ_REQUIRE_SIGNING=
export MOZ_ADDON_SIGNING=0
# System libraries
# # system-bz2 does not work with gcc builds
# system-bz2 is no longer a thing
# ac_add_options --with-system-bz2
ac_add_options --with-system-ffi
ac_add_options --with-system-icu
ac_add_options --with-system-jpeg
# # system-libevent breaks compiling
# # ipc/chromium/src/base/message_pump_libevent.cc:45:1: error: use of undeclared identifier 'EVENT__SIZEOF_TIME_T'
# ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --enable-system-pixman
# # system-png does not work with gcc builds
# # system-png lacks APNG support on arch
# ac_add_options --with-system-png
# # system-sqlite does not work with gcc builds
# system-sqlite is no longer a thing
# ac_add_options --enable-system-sqlite
ac_add_options --with-system-webp
ac_add_options --with-system-zlib
ac_add_options --with-wasi-sysroot=/usr/share/wasi-sysroot
# ac_add_options --without-wasm-sandboxed-libraries
# Features
ac_add_options --enable-alsa
ac_add_options --enable-av1
ac_add_options --enable-jack
# Disables
ac_add_options --disable-accessibility
ac_add_options --disable-bootstrap
# # disable-cdp is no longer a thing
# ac_add_options --disable-cdp
ac_add_options --disable-crashreporter
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-eme
# # marionette required for the xorg tests
# ac_add_options --disable-marionette
ac_add_options --disable-necko-wifi
ac_add_options --disable-parental-controls
# # precompiled-startupcache must be disabled to cpu optimize for a
# # target that has instructions the build host lacks
# ac_add_options --disable-precompiled-startupcache
ac_add_options --disable-synth-speechd
ac_add_options --disable-tests
ac_add_options --disable-updater
ac_add_options --disable-webspeech
|