From 578da973d6a0c0498be80e0489d25b275e1d99e9 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 21 Mar 2018 17:38:05 +0000 Subject: [PATCH] Use default LDFLAGS/CXXFLAGS/CFLAGS and filter out flags not supported by clang --- libcxxabi.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libcxxabi.spec b/libcxxabi.spec index 0d6aa3b..4e22b8a 100644 --- a/libcxxabi.spec +++ b/libcxxabi.spec @@ -2,7 +2,7 @@ Name: libcxxabi Version: 6.0.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Low level support for a standard C++ library License: MIT or NCSA URL: http://libcxxabi.llvm.org/ @@ -51,9 +51,9 @@ cd _build %endif %endif -export CFLAGS=`echo $CFLAGS -Qunused-arguments` -export CXXFLAGS=`echo $CXXFLAGS -Qunused-arguments` -export LDFLAGS="-Wl,--build-id" +# Filter out cflags not supported by clang. +%global optflags %(echo %{optflags} | sed -e 's/-mcet//g' -e 's/-fcf-protection//g') + %cmake .. \ -DCMAKE_C_COMPILER=/usr/bin/clang \ -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \ @@ -92,6 +92,10 @@ cp -a include/* %{buildroot}%{_includedir} %{_libdir}/libc++abi.a %changelog +* Wed Mar 21 2018 Tom Stellard - 6.0.0-2 +- Use default LDFLAGS/CXXFLAGS/CFLAGS and filter out flags not supported by + clang + * Wed Mar 14 2018 Tom Callaway - 6.0.0-1 - update to 6.0.0 final