Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/firefox/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-07-08 07:52:56 +0000
committerAndreas Baumann <mail@andreasbaumann.cc>2018-07-08 07:52:56 +0000
commitad03cfa098696ba858bd74971fc674bf75e53b2d (patch)
treeb671ac32a54166013692d1fb152e4f8a3e036970 /extra/firefox/PKGBUILD
parentf1e8410f17ccd8d14bccdb78634508f47455fc7b (diff)
parent1d508a46807414e560ce70591447c6dba0473d63 (diff)
Merge branch 'master' into i486
Diffstat (limited to 'extra/firefox/PKGBUILD')
-rw-r--r--extra/firefox/PKGBUILD15
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/firefox/PKGBUILD b/extra/firefox/PKGBUILD
new file mode 100644
index 00000000..108fd67c
--- /dev/null
+++ b/extra/firefox/PKGBUILD
@@ -0,0 +1,15 @@
+# the gold linker simply allocates too much memory via mmap, cannot
+# possibly word for libxul.so on 32-bit
+eval "$(
+ declare -f prepare | \
+ sed '
+ s/ac_add_options --enable-linker=gold/--enable-linker=bfd/g
+ '
+)"
+
+eval "$(
+ declare -f build | \
+ sed '
+ /CPPFLAGS/ a LDFLAGS+="-Wl,--no-keep-memory -fuse=ld=bfd"
+ '
+)"