From 659674e7f132f0420440ae002a8ab5d682a26f2b Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 20 Oct 2019 22:06:35 +0200 Subject: [PATCH] python3-efl: further attempt to reduce compiler memory usage --- srcpkgs/python3-efl/template | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/srcpkgs/python3-efl/template b/srcpkgs/python3-efl/template index 3a3fa070478..157b2fe58c5 100644 --- a/srcpkgs/python3-efl/template +++ b/srcpkgs/python3-efl/template @@ -15,7 +15,10 @@ homepage="http://enlightenment.org" distfiles="http://download.enlightenment.org/rel/bindings/python/python-efl-${version}.tar.xz" checksum=2bdef4153e3df2ed3edef9f1ebb4554054405425247a9fabb3c784b48232d69b -# ETOOBIG -if [ "$XBPS_WORDSIZE" = "32" ]; then - LDFLAGS="-Wl,--no-keep-memory" -fi +pre_build() { + # The compiler requires a lot of memory here + if [ "$XBPS_WORDSIZE" = "32" ]; then + export CFLAGS="${CFLAGS/-g/-g1}" + export LDFLAGS+="-Wl,--no-keep-memory" + fi +}