Use system CC if present sandbox/nmerinov/llvm
authorNikolai Merinov <n.merinov@samsung.com>
Tue, 29 Jan 2019 08:00:51 +0000 (11:00 +0300)
committerNikolai Merinov <n.merinov@samsung.com>
Tue, 29 Jan 2019 08:11:22 +0000 (11:11 +0300)
packaging/texinfo.spec

index a02c6dd..60bd9e7 100644 (file)
@@ -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