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. --- NEWS | 2 ++ t/data/SPECS/ordering-scriptlets/a_1.spec | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index 4eaa2205..3b82045c 100644 --- a/NEWS +++ b/NEWS @@ -1,4 +1,6 @@ - cpan_testers: + o adapt to a world where gcc is no more the apex predator + (aka works out of the box when there's clang but not gcc) o check & report where genhdlist2 is o check that web server has actually started o describe more tests to help pinpoint regressions 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