summaryrefslogtreecommitdiff
path: root/libre-testing
diff options
context:
space:
mode:
authorFreemor <freemor@freemor.ca>2019-02-09 08:09:44 -0400
committerFreemor <freemor@freemor.ca>2019-02-09 08:09:44 -0400
commit929f9e5aba4b8fbb9071d3dbd03dd65849869b1a (patch)
treedc391aa928e68eae1dcbc0fd74578355b5bf2472 /libre-testing
parent7d8afa65d5b2e5fb1a9b3f04264b15824b80d510 (diff)
downloadabslibre-929f9e5aba4b8fbb9071d3dbd03dd65849869b1a.tar.gz
abslibre-929f9e5aba4b8fbb9071d3dbd03dd65849869b1a.tar.bz2
abslibre-929f9e5aba4b8fbb9071d3dbd03dd65849869b1a.zip
Inch [libre-testing/iceweasel] closer to building in an i686 librechroot
Diffstat (limited to 'libre-testing')
-rw-r--r--libre-testing/iceweasel/PKGBUILD10
1 files changed, 10 insertions, 0 deletions
diff --git a/libre-testing/iceweasel/PKGBUILD b/libre-testing/iceweasel/PKGBUILD
index ac424c241..6a5d6db21 100644
--- a/libre-testing/iceweasel/PKGBUILD
+++ b/libre-testing/iceweasel/PKGBUILD
@@ -136,6 +136,10 @@ END
END
fi # end [[ $CARCH = arm* ]]
+ if [[ $CARCH = i686 ]]; then
+ sed -i '/--enable-linker=gold/d' .mozconfig
+ fi # Because gold linker is alergic to some of the compile options set below to limit memory use.
+
## Rebranding
local brandingdir="$srcdir/$pkgname-$_brandingver"
rm -rf -- browser/branding/$pkgname
@@ -190,6 +194,12 @@ build() {
export MOZ_NOSPAM=1
export MOZBUILD_STATE_PATH="$srcdir/mozbuild"
+ if [[ $CARCH = i686 ]]; then
+ export RUSTFLAGS+=" -Cdebuginfo=0 -Clto=off"
+ export LDFLAGS+=" -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
+ echo "Fixing x32 memory limits"
+ fi #Fix Memory issue
+
# LTO needs more open files
ulimit -n 4096