summaryrefslogtreecommitdiff
path: root/extra/thunderbird/PKGBUILD
blob: a8fa2c35df74d229fc4394893f75e4bc414442f6 (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
eval "$(
  declare -f build | \
    sed '
      /cd mozilla-unified/a sed -i "s/\\(cargo_rustc_flags += -C lto\\)/#\\1/" config/rules.mk
    '
  declare -f prepare | \
    sed '
      $ i LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
      s/ac_add_options --enable-linker=gold/ac_add_options --enable-linker=bfd/
    '
)"

# from VoidLinux, avoid excessive debug symbols in rust leading
# to out-of-memory situations
eval "$(
  declare -f build | \
    sed '
      4 a sed -i "s/debug_info = '2'/debug_info = '1'/" build/moz.configure/toolchain.configure
    '
)"

# don't kill build slaves by auto-guessing available CPU cores
eval "$(
  declare -f build | \
    sed '
      2 a export MOZ_MAKE_FLAGS=-j1
    '
)"