diff --git a/llvm5.0.spec b/llvm5.0.spec index b361141..f01306d 100644 --- a/llvm5.0.spec +++ b/llvm5.0.spec @@ -118,7 +118,9 @@ for f in `grep -Rl 'XFAIL.\+arm' test/ExecutionEngine `; do rm $f; done mkdir -p _build cd _build -%ifarch s390 %{arm} +%ifarch s390 %{arm} %{ix86} +# use linker flags that prioritize efficiency over speed (try and save memory) +%global optflags %{optflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads # Decrease debuginfo verbosity to reduce memory consumption during final library linking %global optflags %(echo %{optflags} | sed 's/-g /-g1 /') %endif