From 82a7f94fe1162366ec2d1f5b44ac57cc87b49cc4 Mon Sep 17 00:00:00 2001 From: cf_zhao Date: Fri, 5 May 2023 10:46:44 +0800 Subject: [PATCH] Avoid hard coding compiler names in spec file to support both gcc and clang building this package. --- gmp.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gmp.spec b/gmp.spec index 39256ad..bf710bd 100644 --- a/gmp.spec +++ b/gmp.spec @@ -38,7 +38,7 @@ GMP dependent library for C++ applications. %build autoreconf -ifv if as --help | grep -q execstack; then - export CCAS="gcc -c -Wa,--noexecstack" + export CCAS="${CC} -c -Wa,--noexecstack" fi %ifarch %{ix86} -- Gitee