From 1a0478d1a891e4cd75d3248fdd134f28676f16b3 Mon Sep 17 00:00:00 2001 From: luofeng14 Date: Fri, 3 Nov 2023 08:51:31 +0000 Subject: [PATCH] support clang build Signed-off-by: luofeng14 --- gmp.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gmp.spec b/gmp.spec index 61bb1cc..63dfcb8 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 -- Gitee