Compare commits
2 Commits
189e2a0f83
...
506f1400fc
Author | SHA1 | Date |
---|---|---|
David Abdurachmanov | 506f1400fc | |
David Abdurachmanov | 8a49ba84d9 |
33
libcxx.spec
33
libcxx.spec
|
@ -3,11 +3,7 @@
|
|||
%ifnarch riscv64
|
||||
%global toolchain clang
|
||||
%endif
|
||||
%global bootstrap 1
|
||||
|
||||
%ifarch riscv64
|
||||
%global debug_package %{nil}
|
||||
%endif
|
||||
%global bootstrap 0
|
||||
|
||||
%global libcxx_version 15.0.0
|
||||
#global rc_ver 3
|
||||
|
@ -15,7 +11,7 @@
|
|||
|
||||
Name: libcxx
|
||||
Version: %{libcxx_version}%{?rc_ver:~rc%{rc_ver}}
|
||||
Release: 2%{?dist}
|
||||
Release: 2.2.riscv64%{?dist}
|
||||
Summary: C++ standard library targeting C++11
|
||||
License: MIT or NCSA
|
||||
URL: http://libcxx.llvm.org/
|
||||
|
@ -33,7 +29,9 @@ BuildRequires: python3-devel
|
|||
BuildRequires: libcxxabi-static
|
||||
BuildRequires: libcxxabi-devel
|
||||
|
||||
%if %{bootstrap} < 1
|
||||
BuildRequires: python3
|
||||
%endif
|
||||
|
||||
|
||||
# For origin certification
|
||||
|
@ -87,8 +85,8 @@ common_cmake_flags="\
|
|||
%if %{bootstrap} < 1
|
||||
-DLIBCXX_CXX_ABI=system-libcxxabi \
|
||||
-DLIBCXX_CXX_ABI_INCLUDE_PATHS=$LIBCXX_ABI_PATH \
|
||||
%endif
|
||||
-DPython3_EXECUTABLE=%{_bindir}/python3 \
|
||||
%endif
|
||||
-DLIBCXX_INCLUDE_BENCHMARKS=OFF \
|
||||
-DCMAKE_MODULE_PATH=%{_libdir}/cmake/llvm \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo"
|
||||
|
@ -101,7 +99,8 @@ common_cmake_flags="\
|
|||
-DLIBCXX_ENABLE_STATIC=ON \
|
||||
-DLIBCXX_ENABLE_SHARED=OFF \
|
||||
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON \
|
||||
-DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON
|
||||
-DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON \
|
||||
-DLIBCXX_CXX_ABI_LIBRARY_PATH=%{_libdir}
|
||||
|
||||
%cmake_build
|
||||
|
||||
|
@ -124,6 +123,18 @@ mv tmp.a libc++.a
|
|||
ranlib libc++.a
|
||||
popd
|
||||
|
||||
%cmake -GNinja \
|
||||
$common_cmake_flags \
|
||||
-DLIBCXX_STANDALONE_BUILD=ON \
|
||||
%if %{bootstrap} < 1
|
||||
-DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=ON \
|
||||
%endif
|
||||
-DLIBCXX_ENABLE_STATIC=OFF \
|
||||
-DLIBCXX_ENABLE_SHARED=ON \
|
||||
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=OFF
|
||||
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
|
||||
%cmake_install
|
||||
|
@ -138,10 +149,12 @@ install -m 0644 src/include/*.h %{buildroot}%{_includedir}/libcxx-internal/
|
|||
%files
|
||||
%license LICENSE.TXT
|
||||
%doc CREDITS.TXT TODO.TXT
|
||||
%{_libdir}/libc++.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/libcxx-internal/
|
||||
%{_includedir}/c++/
|
||||
%{_libdir}/libc++.so
|
||||
|
||||
%files static
|
||||
%license LICENSE.TXT
|
||||
|
@ -149,8 +162,8 @@ install -m 0644 src/include/*.h %{buildroot}%{_includedir}/libcxx-internal/
|
|||
|
||||
|
||||
%changelog
|
||||
* Fri Oct 07 2022 David Abdurachmanov <davidlt@rivosinc.com> - 15.0.0-2.0.riscv64
|
||||
- Bootstrap on riscv64
|
||||
* Sat Oct 08 2022 David Abdurachmanov <davidlt@rivosinc.com> - 15.0.0-2.0.riscv64
|
||||
- Bootstrap again on riscv64 (new libcxxabi)
|
||||
|
||||
* Tue Sep 13 2022 Nikita Popov <npopov@redhat.com> - 15.0.0-2
|
||||
- Link libc++.a against libc++abi.a
|
||||
|
|
Loading…
Reference in New Issue