Use default LDFLAGS/CXXFLAGS/CFLAGS and filter out flags not supported by clang
This commit is contained in:
parent
caf00d8896
commit
578da973d6
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
Name: libcxxabi
|
Name: libcxxabi
|
||||||
Version: 6.0.0
|
Version: 6.0.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Low level support for a standard C++ library
|
Summary: Low level support for a standard C++ library
|
||||||
License: MIT or NCSA
|
License: MIT or NCSA
|
||||||
URL: http://libcxxabi.llvm.org/
|
URL: http://libcxxabi.llvm.org/
|
||||||
|
@ -51,9 +51,9 @@ cd _build
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
export CFLAGS=`echo $CFLAGS -Qunused-arguments`
|
# Filter out cflags not supported by clang.
|
||||||
export CXXFLAGS=`echo $CXXFLAGS -Qunused-arguments`
|
%global optflags %(echo %{optflags} | sed -e 's/-mcet//g' -e 's/-fcf-protection//g')
|
||||||
export LDFLAGS="-Wl,--build-id"
|
|
||||||
%cmake .. \
|
%cmake .. \
|
||||||
-DCMAKE_C_COMPILER=/usr/bin/clang \
|
-DCMAKE_C_COMPILER=/usr/bin/clang \
|
||||||
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
|
-DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
|
||||||
|
@ -92,6 +92,10 @@ cp -a include/* %{buildroot}%{_includedir}
|
||||||
%{_libdir}/libc++abi.a
|
%{_libdir}/libc++abi.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 21 2018 Tom Stellard <tstellar@redhat.com> - 6.0.0-2
|
||||||
|
- Use default LDFLAGS/CXXFLAGS/CFLAGS and filter out flags not supported by
|
||||||
|
clang
|
||||||
|
|
||||||
* Wed Mar 14 2018 Tom Callaway <spot@fedoraproject.org> - 6.0.0-1
|
* Wed Mar 14 2018 Tom Callaway <spot@fedoraproject.org> - 6.0.0-1
|
||||||
- update to 6.0.0 final
|
- update to 6.0.0 final
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue