diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-05-07 13:29:52 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-05-07 13:29:52 +0200 |
commit | 0690a48621d826061ea6f1119898428a523cc4ad (patch) | |
tree | 695542eff450c00e389dde6c57f59c53af7da974 /community/virtualbox | |
parent | 694c16db3c49041a60eb5f2b89b59fa045d8c318 (diff) | |
download | packages-0690a48621d826061ea6f1119898428a523cc4ad.tar.xz |
community/virtualbox: have a try to work around OOMs
Diffstat (limited to 'community/virtualbox')
-rw-r--r-- | community/virtualbox/PKGBUILD | 10 |
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 "$( |