Archived
3
0

libcxx: better cmake parameters

This commit is contained in:
Philippe PITTOLI 2019-11-05 02:01:28 +01:00
parent ea0bf614d5
commit af88835b80

View File

@ -6,8 +6,10 @@ sources: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{versio
mkdir %{name}-%{version} mkdir %{name}-%{version}
cd %{name}-%{version} cd %{name}-%{version}
cmake ../%{name}-%{version}.src \ cmake ../%{name}-%{version}.src \
-DCMAKE_INSTALL_PREFIX=/usr/weirdos \ -DCMAKE_INSTALL_PREFIX=%{prefix} \
-DCMAKE_BUILD_TYPE=Release \ -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-fPIC -O2" \ -DLIBCXX_HAS_MUSL_LIBC=ON \
-DCMAKE_C_FLAGS="-fPIC -O2" -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
-DLIBCXX_CXX_ABI=libcxxabi \
-DCMAKE_C_FLAGS="$CFLAGS"