diff options
Diffstat (limited to 'extra/thunderbird/PKGBUILD')
-rw-r--r-- | extra/thunderbird/PKGBUILD | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/extra/thunderbird/PKGBUILD b/extra/thunderbird/PKGBUILD index 6fa9a0ea..77cf9b4b 100644 --- a/extra/thunderbird/PKGBUILD +++ b/extra/thunderbird/PKGBUILD @@ -1,12 +1,20 @@ +# -g1 from VoidLinux, reduce size of debug symbols eval "$( - declare -f build | \ + declare -f prepare | \ sed ' - /cd mozilla-unified/a sed -i "s/\\(cargo_rustc_flags += -C lto\\)/#\\1/" config/rules.mk + /sed/ a \ + sed -i "s/ac_add_options --enable-linker=gold/ac_add_options --enable-linker=bfd/" .mozconfig + $ i export LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads" + $ i export CFLAGS="${CFLAGS/-g/-g1}" + $ i export CXXFLAGS="${CXXFLAGS/-g/-g1}" ' - declare -f prepare | \ +)" + +#~ # no longer applies (TODO: check where we can set this) +eval "$( + declare -f build | \ sed ' - $ i LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads" - s/ac_add_options --enable-linker=gold/ac_add_options --enable-linker=bfd/ + /cd /a sed -i "s/\\(cargo_rustc_flags += -C lto\\)/#\\1/" config/rules.mk ' )" @@ -15,7 +23,7 @@ eval "$( eval "$( declare -f build | \ sed ' - 4 a sed -i "s/debug_info = '\''2'\''/debug_info = '\''1'\''/" build/moz.configure/toolchain.configure + /cd /a sed -i "s/debug_info = '\''2'\''/debug_info = '\''1'\''/" build/moz.configure/toolchain.configure ' )" |