summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2021-05-07 13:29:52 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2021-05-07 13:29:52 +0200
commit0690a48621d826061ea6f1119898428a523cc4ad (patch)
tree695542eff450c00e389dde6c57f59c53af7da974
parent694c16db3c49041a60eb5f2b89b59fa045d8c318 (diff)
downloadpackages-0690a48621d826061ea6f1119898428a523cc4ad.tar.xz
community/virtualbox: have a try to work around OOMs
-rw-r--r--community/virtualbox/PKGBUILD10
1 files changed, 10 insertions, 0 deletions
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 "$(