You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

45 lines
1.2 KiB

name: libcxxabi
version: 8.0.1
# for version 9.X and later
# sources:{version}/libcxxabi-%{version}.src.tar.xz
dirname: %{name}-%{version}.src/lib
mkdir build
cd build
#sed -i -e "/-nostdinc++/d" CMakeLists.txt
cmake ../%{name}-%{version}.src \
-DLIBCXXABI_LIBCXX_INCLUDES=%{prefix}/include/c++/v1 \
cd build
cd build
make DESTDIR="%{pkg}" install
mkdir -p %{pkg}%{prefix}/include
cp ../%{name}-%{version}.src/include/* %{pkg}%{prefix}/include
# cd libcxxabi-%{version}.src/lib
# export CXX="clang++ $CXXFLAGS -I%{prefix}/include/c++/v1/ -I%{prefix}/include"
# ./buildit
# cd libcxxabi-%{version}.src/lib
# mkdir -p %{pkg}%{prefix}/lib
# cp -a libc++abi.* %{pkg}%{prefix}/lib