[seamonkey] fix build time memory amount check

Dmitry Butskoy buc at fedoraproject.org
Sat Sep 20 18:47:54 UTC 2014


commit 5ea8a19acfe0e482364943a3777c4b64075831a9
Author: buc <buc at grad.stu.neva.ru>
Date:   Sat Sep 20 22:51:51 2014 +0400

    fix build time memory amount check

 seamonkey.spec |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/seamonkey.spec b/seamonkey.spec
index 92f1b17..8070eff 100644
--- a/seamonkey.spec
+++ b/seamonkey.spec
@@ -192,7 +192,9 @@ MOZ_OPT_FLAGS="$MOZ_OPT_FLAGS -Wformat"
 export CFLAGS=$MOZ_OPT_FLAGS
 export CXXFLAGS=$MOZ_OPT_FLAGS
 
-%if %(free -m | awk '/^Mem:/ { print $2 }') <= 4096
+# To avoid link time crashes with not enough memory
+# (approximately <= 4Gb)
+%if %(awk '/^MemTotal:/ { print $2 }' /proc/meminfo) <= 4200000
 MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
 export LDFLAGS=$MOZ_LINK_FLAGS
 %endif


More information about the scm-commits mailing list