From: Ronan Le Martret Date: Tue, 13 May 2014 17:05:29 +0000 (+0200) Subject: Use macro %__cc instead of gcc command X-Git-Tag: submit/tizen_common/20140618.103325^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F07%2F20907%2F1;p=platform%2Fupstream%2Flua.git Use macro %__cc instead of gcc command Change-Id: I6034559a6b6e35f4514669b4b202dfbfe508dae5 Signed-off-by: Ronan Le Martret --- diff --git a/packaging/lua.spec b/packaging/lua.spec index 92f4760..5de7a96 100644 --- a/packaging/lua.spec +++ b/packaging/lua.spec @@ -80,7 +80,7 @@ cp %{SOURCE1001} . %build sed -i 's:LUA_ROOT2 "LIBDIR/lua/%{major_version}/":LUA_ROOT2 \"%{_lib}/lua/%{major_version}/":' src/luaconf.h -make %{?_smp_mflags} -C src CC="gcc" MYCFLAGS="%{optflags} -fPIC -DLUA_USE_LINUX" MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" V=%{major_version} all +make %{?_smp_mflags} -C src CC="%{__cc}" MYCFLAGS="%{optflags} -fPIC -DLUA_USE_LINUX" MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" V=%{major_version} all %install make install INSTALL_TOP="%{buildroot}%{_prefix}" INSTALL_LIB="%{buildroot}%{_libdir}" INSTALL_CMOD=%{buildroot}%{_libdir}/lua/%{major_version} INSTALL_MAN="%{buildroot}%{_mandir}/man1"