summaryrefslogtreecommitdiffstats
path: root/t/data/SPECS
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-04-24 13:18:07 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-04-29 14:44:05 +0200
commit12528490d0885a9e2a665d5052c75e48e559441c (patch)
treedd0d201e3a1bffe3718323324835a231849409d1 /t/data/SPECS
parent8424241ebdea1e07b852c0d77d6520d51b35b7f4 (diff)
downloadurpmi-12528490d0885a9e2a665d5052c75e48e559441c.tar
urpmi-12528490d0885a9e2a665d5052c75e48e559441c.tar.gz
urpmi-12528490d0885a9e2a665d5052c75e48e559441c.tar.bz2
urpmi-12528490d0885a9e2a665d5052c75e48e559441c.tar.xz
urpmi-12528490d0885a9e2a665d5052c75e48e559441c.zip
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.
Diffstat (limited to 't/data/SPECS')
-rw-r--r--t/data/SPECS/ordering-scriptlets/a_1.spec4
1 files changed, 2 insertions, 2 deletions
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