From 8b280cc09b1a33c2b2b42b990126b17d5f53e2a3 Mon Sep 17 00:00:00 2001 From: Nikolai Merinov Date: Tue, 29 Jan 2019 11:00:51 +0300 Subject: [PATCH] Use system CC if present --- packaging/texinfo.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packaging/texinfo.spec b/packaging/texinfo.spec index a02c6dd..60bd9e7 100644 --- a/packaging/texinfo.spec +++ b/packaging/texinfo.spec @@ -128,7 +128,7 @@ popd HOST=%{_target_cpu}-tizen-linux CFLAGS="$RPM_OPT_FLAGS -pipe" LDFLAGS="" - CC=gcc + CC="${CC:-gcc}" export CFLAGS LDFLAGS CC export LD_AS_NEEDED=0 AUTOPOINT=true autoreconf -fi @@ -149,7 +149,7 @@ pushd ../texi2html-%{version_t2h} popd pushd ../texi2roff-%{version_t2r} rm -f texi2roff - make %{?_smp_mflags}; + make %{?_smp_mflags} CC="${CC:-gcc}"; popd %install -- 2.7.4