SHA256
1
0
forked from pool/llvm

Accepting request 252467 from devel:tools:compiler

- Enable shared libs on PPC64

- Require llvm-clang not just clang

OBS-URL: https://build.opensuse.org/request/show/252467
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/llvm?expand=0&rev=65
This commit is contained in:
Stephan Kulow 2014-09-28 17:55:31 +00:00 committed by Git OBS Bridge
commit 85ea67d216
2 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Sep 26 08:54:08 UTC 2014 - idonmez@suse.com
- Enable shared libs on PPC64
-------------------------------------------------------------------
Thu Sep 25 10:16:50 UTC 2014 - idonmez@suse.com
- Require llvm-clang not just clang
-------------------------------------------------------------------
Wed Sep 17 11:01:31 UTC 2014 - idonmez@suse.com

View File

@ -123,7 +123,7 @@ This package contains the shared libraries needed for clang.
%package clang-devel
Summary: CLANG frontend for LLVM (devel package)
Group: Development/Languages/Other
Requires: clang = %{version}
Requires: llvm-clang = %{version}
Requires: llvm-devel = %{version}
%description clang-devel
@ -268,9 +268,7 @@ export CC=$TOPLEVEL/stage1/bin/clang
export CXX=$TOPLEVEL/stage1/bin/clang++
cmake -G "Ninja" \
%ifnarch ppc64 ppc64le
-DBUILD_SHARED_LIBS=ON \
%endif
%ifarch %arm ppc64 ppc64le
-DCMAKE_BUILD_TYPE=Release \
%else
@ -321,9 +319,7 @@ ln -s lib lib64
# cmake files
rm CMakeCache.txt
cmake -G "Ninja" \
%ifnarch ppc64 ppc64le
-DBUILD_SHARED_LIBS=ON \
%endif
%ifarch %arm ppc64 ppc64le
-DCMAKE_BUILD_TYPE=Release \
%else
@ -334,10 +330,12 @@ cmake -G "Ninja" \
%ifarch armv6hl
-DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
-DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp" \
-DLLVM_DEFAULT_TARGET_TRIPLE=armv6-unknown-linux-gnueabihf \
%endif
%ifarch armv7hl
-DCMAKE_C_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16" \
-DCMAKE_CXX_FLAGS="-mfloat-abi=hard -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16" \
-DLLVM_DEFAULT_TARGET_TRIPLE=armv7l-unknown-linux-gnueabihf \
%endif
%if "%{_lib}" == "lib64"
-DLLVM_LIBDIR_SUFFIX=64 \
@ -521,9 +519,6 @@ rm %{buildroot}%{_mandir}/man1/lit.1
%exclude %{_libdir}/libclang.so
%{_libdir}/libclang*.so
%{_libdir}/libclang.so.*
%ifarch ppc64 ppc64le
%{_libdir}/libclang*.a
%endif
%files clang-devel
%defattr(-,root,root)