Commit 31144766 authored by Joerg Bruehe's avatar Joerg Bruehe

Merge second fix for bug#40546 to the 5.1.30 tree.

parents a21f8a0e 2e6a0cbc
...@@ -341,13 +341,17 @@ CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-except ...@@ -341,13 +341,17 @@ CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-except
( (
# We are in a subshell, so we can modify variables just for one run. # We are in a subshell, so we can modify variables just for one run.
CFLAGS=`echo $CFLAGS | sed -e 's/-O[0-9]* //' -e 's/-unroll2 //' -e 's/-ip //' -e 's/$/ -g/'` CFLAGS=`echo " $CFLAGS " | \
CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]* //' -e 's/-unroll2 //' -e 's/-ip //' -e 's/$/ -g/'` sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \
-e 's/^ //' -e 's/ $//'`
CXXFLAGS=`echo " $CXXFLAGS " | \
sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \
-e 's/^ //' -e 's/ $//'`
# Add -g and --with-debug. # Add -g and --with-debug.
cd mysql-debug-%{mysql_version} && cd mysql-debug-%{mysql_version} &&
CFLAGS=\"$CFLAGS\" \ CFLAGS="$CFLAGS" \
CXXFLAGS=\"$CXXFLAGS\" \ CXXFLAGS="$CXXFLAGS" \
BuildMySQL "\ BuildMySQL "\
--with-debug \ --with-debug \
--with-comment=\"MySQL Community Server - Debug (GPL)\"") --with-comment=\"MySQL Community Server - Debug (GPL)\"")
...@@ -367,8 +371,8 @@ fi ...@@ -367,8 +371,8 @@ fi
############################################################################## ##############################################################################
(cd mysql-release-%{mysql_version} && (cd mysql-release-%{mysql_version} &&
CFLAGS=\"$CFLAGS\" \ CFLAGS="$CFLAGS" \
CXXFLAGS=\"$CXXFLAGS\" \ CXXFLAGS="$CXXFLAGS" \
BuildMySQL "\ BuildMySQL "\
--with-embedded-server \ --with-embedded-server \
--with-comment=\"MySQL Community Server (GPL)\"") --with-comment=\"MySQL Community Server (GPL)\"")
...@@ -830,6 +834,11 @@ fi ...@@ -830,6 +834,11 @@ fi
# itself - note that they must be ordered by date (important when # itself - note that they must be ordered by date (important when
# merging BK trees) # merging BK trees)
%changelog %changelog
* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
- Correct yesterday's fix, so that it also works for the last flag,
and fix a wrong quoting: un-quoted quote marks must not be escaped.
* Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com> * Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
- Removed "mysql_upgrade_shell" - Removed "mysql_upgrade_shell"
......
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