From a3da4a517ae422882fd5d5c4280f879d6f218e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 12 Feb 2023 20:02:11 +0100 Subject: selectively enable -pipe based on ram --- etc/portage/make.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3