summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2023-02-12 20:02:11 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2023-02-12 20:02:11 +0100
commita3da4a517ae422882fd5d5c4280f879d6f218e14 (patch)
tree81cc1b3bd9e0cf2b43728c4f9f6e9b1dc83c23d0 /etc
parentmerge (diff)
downloadn-a3da4a517ae422882fd5d5c4280f879d6f218e14.tar
n-a3da4a517ae422882fd5d5c4280f879d6f218e14.tar.gz
n-a3da4a517ae422882fd5d5c4280f879d6f218e14.tar.bz2
n-a3da4a517ae422882fd5d5c4280f879d6f218e14.tar.lz
n-a3da4a517ae422882fd5d5c4280f879d6f218e14.tar.xz
n-a3da4a517ae422882fd5d5c4280f879d6f218e14.tar.zst
n-a3da4a517ae422882fd5d5c4280f879d6f218e14.zip
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"