From 12528490d0885a9e2a665d5052c75e48e559441c Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Fri, 24 Apr 2020 13:18:07 +0200 Subject: use a more neutral C compiled Aka adapt to a world where gcc is no more the apex predator... Several Linux distros as well as FreeBSD >= 10 default to clang instead of gcc. --- t/data/SPECS/ordering-scriptlets/a_1.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 't') diff --git a/t/data/SPECS/ordering-scriptlets/a_1.spec b/t/data/SPECS/ordering-scriptlets/a_1.spec index 41776692..a4a0b1cd 100644 --- a/t/data/SPECS/ordering-scriptlets/a_1.spec +++ b/t/data/SPECS/ordering-scriptlets/a_1.spec @@ -7,7 +7,7 @@ Version: 1 Release: 1 License: x Provides: /bin/a -BuildRequires: gcc +#BuildRequires: gcc %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^libc.so|^ld %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^libc.so|^ld @@ -29,7 +29,7 @@ EOF %build # Try a static build with fallback to dynamic if no static libs/headers # (in which case we will pull the the wanted libs in %%install): -gcc -Wall -static -o a a.c || gcc -Wall -o a a.c +cc -Wall -static -o a a.c || cc -Wall -o a a.c %install rm -rf $RPM_BUILD_ROOT -- cgit v1.2.1