1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

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 6cb7abe667
commit 688811b913

View File

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