- Disable debug symbols on PPC64

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=216
This commit is contained in:
Ismail Dönmez 2013-05-24 11:21:52 +00:00 committed by Git OBS Bridge
parent a0792ca832
commit d7e8626b05
2 changed files with 26 additions and 20 deletions

View File

@ -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

View File

@ -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