From d7e8626b058726acd49e9223e63828570643eb3d9bbcd1334487efbb257bbe9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Fri, 24 May 2013 11:21:52 +0000 Subject: [PATCH] - Disable debug symbols on PPC64 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=216 --- llvm.changes | 5 +++++ llvm.spec | 41 +++++++++++++++++++++-------------------- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/llvm.changes b/llvm.changes index bd6216c..a77668b 100644 --- a/llvm.changes +++ b/llvm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 24 11:21:39 UTC 2013 - idonmez@suse.com + +- Disable debug symbols on PPC64 + ------------------------------------------------------------------- Tue May 21 09:46:02 UTC 2013 - idonmez@suse.com diff --git a/llvm.spec b/llvm.spec index 4c62a9b..bf17c9f 100644 --- a/llvm.spec +++ b/llvm.spec @@ -169,10 +169,6 @@ mkdir stage1 stage2 pushd stage1 mkdir Release -%if "%{_lib}" == "lib64" -ln -s lib Release/lib64 -%endif - ../configure \ --enable-optimized \ --disable-assertions \ @@ -205,10 +201,13 @@ make %{?_smp_mflags} clang-only popd pushd stage2 -mkdir Release+Debug # autotools ignore --libdir -%if "%{_lib}" == "lib64" +%ifnarch ppc64 +mkdir Release+Debug ln -s lib Release+Debug/lib64 +%else +mkdir Release +ln -s lib Release/lib64 %endif export CC=$TOPLEVEL/stage1/Release/bin/clang @@ -231,30 +230,32 @@ export CXXFLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d1 %endif %ifarch %arm --with-optimize-option="-U_GLIBCXX_ATOMIC_BUILTINS" \ - --disable-sjlj-exceptions \ - --disable-werror --enable-checking=release \ + --disable-sjlj-exceptions \ + --disable-werror --enable-checking=release \ %ifarch armv5el armv5tel - --with-arch=armv5te --with-float=soft --with-mode=arm \ + --with-arch=armv5te --with-float=soft --with-mode=arm \ %endif %ifarch armv7l armv7hl - --with-arch=armv7-a \ - --with-tune=cortex-a9 \ - --with-float=hard \ - --with-fpu=vfpv3-d16 \ - --with-abi=aapcs-vfp \ + --with-arch=armv7-a \ + --with-tune=cortex-a9 \ + --with-float=hard \ + --with-fpu=vfpv3-d16 \ + --with-abi=aapcs-vfp \ %if 0%{?suse_version} >= 1220 - --with-mode=thumb \ + --with-mode=thumb \ %else - --with-mode=arm \ + --with-mode=arm \ %endif %endif - --enable-targets=arm \ + --enable-targets=arm \ %else - --enable-targets=%{_supported_archs} \ + --enable-targets=%{_supported_archs} \ %endif - --with-clang-resource-dir="../%{_lib}/clang/%{_release_version}" \ +%ifnarch ppc64 --enable-debug-symbols \ - --enable-debug-runtime + --enable-debug-runtime \ +%endif + --with-clang-resource-dir="../%{_lib}/clang/%{_release_version}" make %{?_smp_mflags} REQUIRES_RTTI=1