From c244b9b7d1673703c84d14c10271a8191f3f5e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Hor=C3=A1k?= Date: Wed, 9 Mar 2016 15:33:10 -0500 Subject: [PATCH] - install back memory consumption workaround for s390 --- llvm.spec | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 52d087c..ae09630 100644 --- a/llvm.spec +++ b/llvm.spec @@ -7,7 +7,7 @@ Name: llvm Version: 3.8.0 -Release: 0.2%{?dist} +Release: 0.3%{?dist} Summary: The Low Level Virtual Machine License: NCSA @@ -74,11 +74,20 @@ Static libraries for the LLVM compiler infrastructure. mkdir -p _build cd _build +%ifarch s390 +# Decrease debuginfo verbosity to reduce memory consumption during final library linking +%global optflags %(echo %{optflags} | sed 's/-g /-g1 /') +%endif + # force off shared libs as cmake macros turns it on. %cmake .. \ -DBUILD_SHARED_LIBS:BOOL=OFF \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_SHARED_LINKER_FLAGS="-Wl,-Bsymbolic -static-libstdc++" \ +%ifarch s390 + -DCMAKE_C_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ + -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="%{optflags} -DNDEBUG" \ +%endif %if 0%{?__isa_bits} == 64 -DLLVM_LIBDIR_SUFFIX=64 \ %else @@ -169,6 +178,9 @@ make check-all || : %{_libdir}/*.a %changelog +* Wed Mar 09 2016 Dan HorĂ¡k 3.8.0-0.3 +- install back memory consumption workaround for s390 + * Thu Mar 03 2016 Dave Airlie 3.8.0-0.2 - llvm 3.8.0 rc3 release