Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/wpewebkit
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-04-28 09:17:16 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2021-04-28 09:17:16 +0200
commit76ffb3d4f70daadd5e5a27e4e64b9df2a58f184b (patch)
tree74711e621f38fa1ab09b02754432e7e5ebcfd50b /extra/wpewebkit
parent654ff92da5ad15d267322042f12f86cdc212a2e0 (diff)
extra/wpewebkit: avoid running out of memory when linking
Diffstat (limited to 'extra/wpewebkit')
-rw-r--r--extra/wpewebkit/PKGBUILD10
1 files changed, 10 insertions, 0 deletions
diff --git a/extra/wpewebkit/PKGBUILD b/extra/wpewebkit/PKGBUILD
index 1e02c2d6..d6499394 100644
--- a/extra/wpewebkit/PKGBUILD
+++ b/extra/wpewebkit/PKGBUILD
@@ -2,3 +2,13 @@
if [ "$CARCH" = 'i486' ]; then
makedepends=(${makedepends[@]//gst-plugins-bad/})
fi
+
+# linker runs out of memory on 32-bit
+eval "$(
+ declare -f build | \
+ sed '
+ 3 i LDFLAGS+=" -Wl,--no-keep-memory"
+ 3 i CFLAGS+=" -g1"
+ 3 i CXXFLAGS+=" -g1"
+ '
+)"