diff options
Diffstat (limited to 'source/xap/mozilla-thunderbird')
l--------- | source/xap/mozilla-thunderbird/gold/gold | 1 | ||||
l--------- | source/xap/mozilla-thunderbird/gold/ld | 1 | ||||
-rwxr-xr-x | source/xap/mozilla-thunderbird/gold/ld.gold | 6 | ||||
-rwxr-xr-x | source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild | 31 |
4 files changed, 13 insertions, 26 deletions
diff --git a/source/xap/mozilla-thunderbird/gold/gold b/source/xap/mozilla-thunderbird/gold/gold deleted file mode 120000 index 6cd03701..00000000 --- a/source/xap/mozilla-thunderbird/gold/gold +++ /dev/null @@ -1 +0,0 @@ -ld.gold
\ No newline at end of file diff --git a/source/xap/mozilla-thunderbird/gold/ld b/source/xap/mozilla-thunderbird/gold/ld deleted file mode 120000 index 6cd03701..00000000 --- a/source/xap/mozilla-thunderbird/gold/ld +++ /dev/null @@ -1 +0,0 @@ -ld.gold
\ No newline at end of file diff --git a/source/xap/mozilla-thunderbird/gold/ld.gold b/source/xap/mozilla-thunderbird/gold/ld.gold deleted file mode 100755 index f1d76b3a..00000000 --- a/source/xap/mozilla-thunderbird/gold/ld.gold +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -# Doing this for 32-bit... sigh. May have to try to figure out how to only -# use it in 32-bit userspace even when running under a 64-bit kernel. -/usr/bin/ld.gold --no-map-whole-files --no-keep-memory --no-keep-files-mapped "$@" -# Old simple way: -#/usr/bin/ld.gold "$@" diff --git a/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild b/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild index 4804e26d..ee2442ff 100755 --- a/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild +++ b/source/xap/mozilla-thunderbird/mozilla-thunderbird.SlackBuild @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2008, 2009, 2010, 2011, 2012, 2014, 2016, 2017, 2018, 2019 Patrick J. Volkerding, Sebeka, Minnesota, USA +# Copyright 2008, 2009, 2010, 2011, 2012, 2014, 2016, 2017, 2018, 2019, 2020 Patrick J. Volkerding, Sebeka, Minnesota, USA # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -94,47 +94,40 @@ fi if [ "$ARCH" = "i586" ]; then SLKCFLAGS="" LIBDIRSUFFIX="" - OPTIMIZE=${OPTIMIZE:-"-Os"} + OPTIMIZE=${OPTIMIZE:-"-O2 -g0"} elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="" LIBDIRSUFFIX="" - OPTIMIZE=${OPTIMIZE:-"-Os"} + OPTIMIZE=${OPTIMIZE:-"-O2 -g0"} elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-fPIC" LIBDIRSUFFIX="64" - OPTIMIZE=${OPTIMIZE:-"-O2"} + OPTIMIZE=${OPTIMIZE:-"-O2 -g0"} elif [ "$ARCH" = "arm" ]; then SLKCFLAGS="-march=armv4 -mtune=xscale" LIBDIRSUFFIX="" - OPTIMIZE=${OPTIMIZE:-"-O2"} + OPTIMIZE=${OPTIMIZE:-"-O2 -g0"} else SLKCFLAGS="" LIBDIRSUFFIX="" - OPTIMIZE=${OPTIMIZE:-"-O2"} + OPTIMIZE=${OPTIMIZE:-"-O2 -g0"} fi # Choose a compiler (gcc/g++ or clang/clang++): export CC=${CC:-gcc} export CXX=${CXX:-g++} -## Link using gold. This avoids running out of memory on 32-bit systems, and -## avoids a recurring build failure with GNU ld on other systems. -#PATH="$(pwd)/gold:$PATH" -#export CC="$CC -B$(pwd)/gold" -#export CXX="$CXX -B$(pwd)/gold" - # Keep memory usage as low as possible when linking: -SLKLDFLAGS=" -Wl,--as-needed -Wl,--no-keep-memory -Wl,--stats" +SLKLDFLAGS=" -Wl,--as-needed -Wl,--no-keep-memory -Wl,--stats -Wl,--reduce-memory-overheads" export LDFLAGS="$SLKLDFLAGS" export MOZ_LINK_FLAGS="$SLKLDFLAGS" -# If you don't give this _something_ then it defaults to -g, causing more -# link time memory issues: -export MOZ_DEBUG_FLAGS="-g0" +# Set linker to use: +LINKER=bfd # Put Rust objects on a diet to keep the linker from running into memory # issues (especially on 32-bit): -export RUSTFLAGS="-Cdebuginfo=0 -Copt-level=0" +export RUSTFLAGS="-Cdebuginfo=0" TMP=${TMP:-/tmp} PKG=$TMP/package-mozilla-thunderbird @@ -221,7 +214,9 @@ OPTIONS="\ --enable-application=comm/mail \ $ENABLE_CALENDAR \ --enable-default-toolkit=cairo-gtk3-wayland \ - --enable-strip \ + --enable-linker=$LINKER \ + --disable-strip \ + --disable-install-strip \ --enable-cpp-rtti \ --enable-accessibility \ $GOOGLE_API_KEY \ |