Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/thunderbird/PKGBUILD
blob: b08b000a14529cc5c689319b96ae68acc3740f78 (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
eval "$(
  declare -f prepare | \
    sed '
      /sed/ a \
      sed -i "s/ac_add_options --enable-linker=gold/ac_add_options --enable-linker=bfd/" .mozconfig
      $ i LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
    '
)"

#~ # no longer applies (TODO: check where we can set this)
eval "$(
  declare -f build | \
    sed '
      /cd /a sed -i "s/\\(cargo_rustc_flags += -C lto\\)/#\\1/" config/rules.mk
    '
)"

# from VoidLinux, avoid excessive debug symbols in rust leading
# to out-of-memory situations
eval "$(
  declare -f build | \
    sed '
      /cd /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
    '
)"