From 42e0cb8c0a1b8470ac8e9ad1c5a741e299debb8f Mon Sep 17 00:00:00 2001 From: Karolin Seeger Date: Wed, 13 May 2009 10:07:56 +0200 Subject: [PATCH] s3/packaging: Fix build on RHEL when ccache is not available. This fixes bug #5832. Patch was provided by D.L. Meyer . Thanks for reporting and providing the patch! Karolin --- packaging/RHEL/samba.spec.tmpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packaging/RHEL/samba.spec.tmpl b/packaging/RHEL/samba.spec.tmpl index d3724d91802..7818296fa6f 100644 --- a/packaging/RHEL/samba.spec.tmpl +++ b/packaging/RHEL/samba.spec.tmpl @@ -122,8 +122,7 @@ cd source # RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" ## check for ccache - ccache -h 2>&1 > /dev/null -if [ $? -eq 0 ]; then +if [ "$(which ccache 2> /dev/null)" != "" ]; then CC="ccache gcc" else CC="gcc" -- 2.34.1