Fix a bug in the RPM spec file:

A "%define" is no shell command, so it must not be the
only line in the "then" or "else" branch of an "if".

Add a ':' line to make the branch non-empty.
This commit is contained in:
Joerg Bruehe 2010-02-17 11:13:15 +01:00
parent 1e7700b8b8
commit 1c2e33b1fc

View File

@ -535,6 +535,7 @@ fi
if expr "$CC" : ".*icc.*" > /dev/null ;
then
%define WITH_LIBGCC 0
:
elif expr "$CC" : ".*gcc.*" > /dev/null ;
then
libgcc=`$CC $CFLAGS --print-libgcc-file`
@ -544,9 +545,11 @@ then
install -m 644 $libgcc $RBR%{_libdir}/mysql/libmygcc.a
else
%define WITH_LIBGCC 0
:
fi
else
%define WITH_LIBGCC 0
:
fi
##############################################################################