Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/thunderbird/PKGBUILD
blob: 63304a5b94de4508c7710611514e433bbdb4aabc (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
    '
)"