aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-07-05 15:52:17 +0000
committerLeo <thinkabit.ukim@gmail.com>2019-07-17 05:58:16 -0300
commit88948f1b8143844e3cd94600549a6a4b6d8ac1cc (patch)
tree52eafe2446a00ad084083e5e5d878e45f3cf1e10
parent70baee8e081db7e5f4deed4c177b1d909c74b81c (diff)
downloadaports-88948f1b8143844e3cd94600549a6a4b6d8ac1cc.tar.gz
aports-88948f1b8143844e3cd94600549a6a4b6d8ac1cc.tar.bz2
aports-88948f1b8143844e3cd94600549a6a4b6d8ac1cc.tar.xz
community/webkit2gtk: enable on x86
Enable x86 and work around out of meomory error by disable _FORTIFY_SOURCE.
-rw-r--r--community/webkit2gtk/APKBUILD5
1 files changed, 4 insertions, 1 deletions
diff --git a/community/webkit2gtk/APKBUILD b/community/webkit2gtk/APKBUILD
index 541fe85eeb..eddcba2132 100644
--- a/community/webkit2gtk/APKBUILD
+++ b/community/webkit2gtk/APKBUILD
@@ -7,7 +7,7 @@ pkgver=2.24.3
pkgrel=0
pkgdesc="Portable web rendering engine WebKit for GTK+"
url="https://webkitgtk.org/"
-arch="all !x86" # x86 fails with: cc1plus: out of memory allocating 65536 bytes after a total of 3131101184 bytes
+arch="all"
license="LGPL-2.0-or-later AND BSD-2-Clause"
options="!check" # 2.20.3-r1 no idea why gtest is removed in prepare
makedepends="
@@ -101,6 +101,9 @@ builddir="$srcdir/webkitgtk-$pkgver"
build() {
local _archopt=
case "$CARCH" in
+ # disable _FORTIFY_SOURCE to work around:
+ # cc1plus: out of memory allocating 65536 bytes after a total of 3131101184 bytes
+ x86) CXXFLAGS="$CXXFLAGS -U_FORTIFY_SOURCE";;
armhf|armv7|ppc64le|s390x) _archopt="-DENABLE_JIT=OFF";;
esac