diff --git a/README.en.md b/README.en.md index 90dcaa379a006c2d175ac5de3fb774cb03e7f182..d8068d5477948b50feeb7a08718cc21da76901e0 100644 --- a/README.en.md +++ b/README.en.md @@ -14,7 +14,7 @@ Software architecture description #### Instructions -1. xxxx +1. Notice: The libunwind created under base sig is the software that the OS depends on, it has the same name as llvm libunwind. Due to above reasons, creating llvm-libunwind in compiler sig. 2. xxxx 3. xxxx diff --git a/README.md b/README.md index 9ee6c3b800479fb83df0f99b3cdf1fc950d4c77c..d6a9b4e28da3166e9ae9b5a8f41efbd68e8dd26c 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ The llvm-libunwind is C ABI libs of llvm for openEuler #### 使用说明 -1. xxxx +1. 注意:base的sig下面创建的libunwind是操作系统依赖的软件,与llvm的libunwind库发生重名的现象,故在compiler的sig下创建llvm-libunwind工程 2. xxxx 3. xxxx diff --git a/libunwind-8.0.1.spec b/libunwind-8.0.1.spec new file mode 100644 index 0000000000000000000000000000000000000000..ca79f40559ed723920f8e85ca0d63980721bec2b --- /dev/null +++ b/libunwind-8.0.1.spec @@ -0,0 +1,51 @@ +%global debug_package %{nil} + +Name: libunwind +Version: 8.0.1 +Release: 1%{?dist} +Summary: LLVM "libunwind" runtime libraries +License: BSD +URL: http://llvm.org +Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libunwind-%{version}.src.tar.xz + + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: cmake +BuildRequires: python3 + +%description +The libunwind-devel package includes the libraries and header files for +libunwind. + +%prep +%autosetup -n libunwind-%{version}.src + +%build +mkdir -p _build +cd _build +cmake \ + -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_C_COMPILER_TARGET=%{_arch} \ + -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON \ +%if 0%{?__isa_bits} == 64 + -DLLVM_LIBDIR_SUFFIX=64 \ +%else + -DLLVM_LIBDIR_SUFFIX= \ +%endif + .. + +%make_build + +%install +cd _build +%make_install + +%files +%{_libdir}/libunwind.* + + +%changelog +* Tue Nov 23 2021 Cheng Congxiu - 8.0.1-1 +- update to 8.0.1-1 diff --git a/libunwind-8.0.1.src.tar.xz b/libunwind-8.0.1.src.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..ddfb91e4b5dd5653ad8a2701492296ac85e6a36d Binary files /dev/null and b/libunwind-8.0.1.src.tar.xz differ