From 0690a48621d826061ea6f1119898428a523cc4ad Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Fri, 7 May 2021 13:29:52 +0200 Subject: community/virtualbox: have a try to work around OOMs --- community/virtualbox/PKGBUILD | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'community') diff --git a/community/virtualbox/PKGBUILD b/community/virtualbox/PKGBUILD index b876bc75..037684be 100644 --- a/community/virtualbox/PKGBUILD +++ b/community/virtualbox/PKGBUILD @@ -1,5 +1,15 @@ # set manually sysctl vm.mmap_min_addr=0 before building this package +# 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" + ' +)" + # Parallel builds lead to "virtual memory exhausted"? # not sure, if still needed (or in fact, working) eval "$( -- cgit v1.2.3-70-g09d2