[packages/ruby-ffi] use current CC

glen glen at pld-linux.org
Mon Aug 11 22:47:10 CEST 2014


commit 0cbc2159e2e494bd33a2fc356dd8557039ee19e3
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Aug 11 23:47:06 2014 +0300

    use current CC

 ruby-ffi.spec | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
---
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-ffi.git/commitdiff/0cbc2159e2e494bd33a2fc356dd8557039ee19e3



More information about the pld-cvs-commit mailing list