From: Elan Ruusamäe Date: Mon, 11 Aug 2014 20:47:06 +0000 (+0300) Subject: use current CC X-Git-Tag: auto/th/ruby-ffi-1.8.1-2~1 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=0cbc2159e2e494bd33a2fc356dd8557039ee19e3;p=packages%2Fruby-ffi.git use current CC --- diff --git a/ruby-ffi.spec b/ruby-ffi.spec index 80d9df2..44d2a46 100644 --- a/ruby-ffi.spec +++ b/ruby-ffi.spec @@ -40,12 +40,18 @@ cp -p %{_datadir}/setup.rb . %{__ruby} setup.rb config \ --rbdir=%{ruby_rubylibdir} \ - --sodir=%{ruby_archdir} + --sodir=%{ruby_archdir} \ + --makeprog=true %{__ruby} setup.rb setup +%{__make} -C ext/ffi_c \ + CC="%{__cc}" + %if %{with tests} -%{__make} -f libtest/GNUmakefile +%{__make} -f libtest/GNUmakefile \ + CCACHE= \ + CC="%{__cc}" ruby -Ilib:ext/ffi_c -S \ rspec spec %endif