From 76ffb3d4f70daadd5e5a27e4e64b9df2a58f184b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Wed, 28 Apr 2021 09:17:16 +0200 Subject: extra/wpewebkit: avoid running out of memory when linking --- extra/wpewebkit/PKGBUILD | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'extra/wpewebkit') 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" + ' +)" -- cgit v1.2.3-70-g09d2