Commit 1c2e33b1 authored by Joerg Bruehe's avatar Joerg Bruehe

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.
parent 1e7700b8
...@@ -535,6 +535,7 @@ fi ...@@ -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 ...@@ -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
############################################################################## ##############################################################################
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment