forked from flathub/org.mozilla.Thunderbird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmozconfig
More file actions
57 lines (49 loc) · 1.91 KB
/
mozconfig
File metadata and controls
57 lines (49 loc) · 1.91 KB
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
# General configuration options
ac_add_options --prefix=/app
ac_add_options --enable-release
ac_add_options --enable-official-branding
# FIXME: Build/use wasi sysroot instead of disabling wasm libs sandbox
ac_add_options --without-wasm-sandboxed-libraries
export MOZ_NOSPAM=1
# build thunderbird
mk_add_options MOZ_CO_PROJECT=mail
ac_add_options --enable-application=comm/mail
# use system libs if possible
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-libvpx
# freedesktop runtime is missing bzip2.pc file
#ac_add_options --with-system-bz2
# requires icu-i18n >= 69.1
#ac_add_options --with-system-icu
# requires nss >=3.53.1
#ac_add_options --with-system-nss
#ac_add_options --with-system-nspr
ac_add_options --with-system-png
# https://github.com/flathub/org.mozilla.Thunderbird/pull/61#issue-275142159
#ac_add_options --enable-system-sqlite
ac_add_options --enable-system-ffi
ac_add_options --enable-system-pixman
# build optimizations
ac_add_options --enable-optimize
# causes build failures:
# /usr/bin/ld: error: LLVM gold plugin has failed to create LTO module: Unknown attribute kind (62) (Producer: 'LLVM10.0.1-rust-1.45.0-stable' Reader: 'LLVM 8.0.1'
#ac_add_options --enable-lto
# elfhack may cause issues when building with lld
# https://bugzilla.mozilla.org/show_bug.cgi?id=1482204
# https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
# It also fails the build when using gcc
#ac_add_options --disable-elf-hack
# Retain debug symbols
ac_add_options --disable-strip
ac_add_options --disable-install-strip
# disable less useful features and minimize dependencies
ac_add_options --disable-debug
ac_add_options --disable-crashreporter
ac_add_options --disable-tests
ac_add_options --disable-necko-wifi
ac_add_options --disable-updater
# Needed to enable breakpad in application.ini
export MOZILLA_OFFICIAL=1
# Fix python virtualenv
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/build-dir