diff --git a/gmp.spec b/gmp.spec index 61bb1cc53f3e120e64e9fbfadfce36d8e59d6320..63dfcb8bb84658823fb422cab86f062a57aaf27a 100644 --- a/gmp.spec +++ b/gmp.spec @@ -1,6 +1,6 @@ Name: gmp Version: 6.2.1 -Release: 2 +Release: 3 Epoch: 1 URL: https://gmplib.org Source0: https://gmplib.org/download/gmp/gmp-%{version}.tar.bz2 @@ -36,7 +36,11 @@ GMP dependent library for C++ applications. %build autoreconf -ifv if as --help | grep -q execstack; then +%if "%toolchain" == "clang" + export CCAS="clang -c -Wa,--noexecstack" +%else export CCAS="gcc -c -Wa,--noexecstack" +%endif fi %ifarch %{ix86} @@ -97,6 +101,9 @@ make %{?_smp_mflags} check %{_libdir}/pkgconfig/gmpxx.pc %changelog +* Sat Aug 05 2023 cf-zhao 1:6.3.0-3 +- Support build with clang + * Fri Jul 30 2021 chenyanpanHW - 6.2.1-2 - DESC: delete -S git from %autosetup, and delete BuildRequires git