]> git.pld-linux.org Git - packages/passenger.git/blobdiff - apache-mod_rails.spec
it does not like ccache in $CC/$CXX
[packages/passenger.git] / apache-mod_rails.spec
index 70f403cf3156e13b39786fbbeefcabd582eb534c..8004fddf28a92a21bf86dc2041640134c2648af6 100644 (file)
@@ -72,16 +72,18 @@ find -newer README -o -print0 | xargs -0 touch --reference %{SOURCE0}
 %{__sed} -i -e 's!/usr/lib/!%{_libdir}/!g' ext/common/ResourceLocator.h
 
 %build
-(cd ext/libev ; %{__autoconf})
+(cd ext/libev; %{__autoconf})
 
+cc="%{__cc}"; cc=${cc#ccache }
+cxx="%{__cxx}"; cxx=${cxx#ccache }
 rake apache2 \
        RELEASE=yes \
        OPTIMIZE=yes \
        APXS2=%{apxs} \
        CXXFLAGS="%{rpmcxxflags}" \
        CFLAGS="%{rpmcflags}" \
-       CXX=%{__cxx} \
-       CC=%{__cc}
+       CXX="$cxx" \
+       CC="$cc"
 
 rdoc --ri --op ri lib ext/ruby
 %{__rm} -r ri/{ConditionVariable,Exception,GC,IO,Object,Process,Signal}
This page took 0.061149 seconds and 4 git commands to generate.