Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2e6a0cbc
Commit
2e6a0cbc
authored
Nov 07, 2008
by
Joerg Bruehe
Browse files
Options
Browse Files
Download
Plain Diff
Upmerge the second fix for bug#40546 from 5.0 to 5.1
and fix a defect specific to 5.1 (wrong quoting).
parents
fb7e23eb
c81061e4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+15
-6
No files found.
support-files/mysql.spec.sh
View file @
2e6a0cbc
...
@@ -326,13 +326,17 @@ CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-except
...
@@ -326,13 +326,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
"--enable-shared
\
BuildMySQL
"--enable-shared
\
--with-debug
\
--with-debug
\
--with-innodb
\
--with-innodb
\
...
@@ -364,8 +368,8 @@ fi
...
@@ -364,8 +368,8 @@ fi
##############################################################################
##############################################################################
(
cd
mysql-release-%
{
mysql_version
}
&&
(
cd
mysql-release-%
{
mysql_version
}
&&
CFLAGS
=
\"
$CFLAGS
\
"
\
CFLAGS
=
"
$CFLAGS
"
\
CXXFLAGS
=
\"
$CXXFLAGS
\
"
\
CXXFLAGS
=
"
$CXXFLAGS
"
\
BuildMySQL
"--enable-shared
\
BuildMySQL
"--enable-shared
\
--with-innodb
\
--with-innodb
\
%if %{CLUSTER_BUILD}
%if %{CLUSTER_BUILD}
...
@@ -840,6 +844,11 @@ fi
...
@@ -840,6 +844,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 Joerg Bruehe <joerg@mysql.com>
* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment