summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/portage/make.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/portage/make.conf b/etc/portage/make.conf
index 9ad75a8..c558f29 100644
--- a/etc/portage/make.conf
+++ b/etc/portage/make.conf
@@ -2,7 +2,7 @@ PORTAGE_SCHEDULING_POLICY="idle"
# -march=native NE SME BITI NA distcc iz očitnih razlogov
# uporabi resolve-march-native
-COMMON_FLAGS="-ggdb3 -O2 -pipe $(resolve-march-native)"
+COMMON_FLAGS="-ggdb3 -O2 $([ `cat /proc/meminfo | grep MemTotal | sed -e 's/ *//g' | cut -d: -f2 | cut -dk -f1` -ge 5000000 ] && echo -pipe) $(resolve-march-native)"
# -pipe rabi RAM
CFLAGS="${COMMON_FLAGS} -DALLOW_RUN_AS_ROOT" # VLC
CXXFLAGS="${COMMON_FLAGS} -DOLAD_SKIP_ROOT_CHECK"