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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
75c2daf2
Commit
75c2daf2
authored
Nov 06, 2008
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merged 5.1-main -> 5.1-bugteam
parents
72b951ba
5e9d35d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
configure.in
configure.in
+1
-1
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+20
-8
No files found.
configure.in
View file @
75c2daf2
...
@@ -10,7 +10,7 @@ AC_CANONICAL_SYSTEM
...
@@ -10,7 +10,7 @@ AC_CANONICAL_SYSTEM
#
#
# When changing major version number please also check switch statement
# When changing major version number please also check switch statement
# in mysqlbinlog::check_master_version().
# in mysqlbinlog::check_master_version().
AM_INIT_AUTOMAKE
(
mysql, 5.1.3
0
)
AM_INIT_AUTOMAKE
(
mysql, 5.1.3
1
)
AM_CONFIG_HEADER
([
include/config.h:config.h.in]
)
AM_CONFIG_HEADER
([
include/config.h:config.h.in]
)
PROTOCOL_VERSION
=
10
PROTOCOL_VERSION
=
10
...
...
support-files/mysql.spec.sh
View file @
75c2daf2
...
@@ -306,8 +306,6 @@ mkdir -p $RBR%{_libdir}/mysql
...
@@ -306,8 +306,6 @@ mkdir -p $RBR%{_libdir}/mysql
PATH
=
${
MYSQL_BUILD_PATH
:-
/bin
:/usr/bin
}
PATH
=
${
MYSQL_BUILD_PATH
:-
/bin
:/usr/bin
}
export
PATH
export
PATH
# Build the Debug binary.
# Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
# Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
# including exceptions into the code
# including exceptions into the code
if
[
-z
"
$CXX
"
-a
-z
"
$CC
"
]
if
[
-z
"
$CXX
"
-a
-z
"
$CC
"
]
...
@@ -316,16 +314,25 @@ then
...
@@ -316,16 +314,25 @@ then
export
CXX
=
"gcc"
export
CXX
=
"gcc"
fi
fi
# Prepare compiler flags
CFLAGS
=
${
MYSQL_BUILD_CFLAGS
:-
$RPM_OPT_FLAGS
}
CXXFLAGS
=
${
MYSQL_BUILD_CXXFLAGS
:-
$RPM_OPT_FLAGS
-felide-constructors -fno-exceptions -fno-rtti
}
##############################################################################
##############################################################################
#
#
# Build the debug version
# Build the debug version
#
#
##############################################################################
##############################################################################
# Strip -Oxxx, add -g and --with-debug.
(
(
cd
mysql-debug-%
{
mysql_version
}
&&
# We are in a subshell, so we can modify variables just for one run.
CFLAGS
=
`
echo
"
${
MYSQL_BUILD_CFLAGS
:-
$RPM_OPT_FLAGS
}
-g"
|
sed
-e
's/-O[0-9]*//g'
`
\
CFLAGS
=
`
echo
$CFLAGS
|
sed
-e
's/-O[0-9]* //'
-e
's/-unroll2 //'
-e
's/-ip //'
-e
's/$/ -g/'
`
CXXFLAGS
=
`
echo
"
${
MYSQL_BUILD_CXXFLAGS
:-
$RPM_OPT_FLAGS
-felide-constructors -fno-exceptions -fno-rtti
}
-g"
|
sed
-e
's/-O[0-9]*//g'
`
\
CXXFLAGS
=
`
echo
$CXXFLAGS
|
sed
-e
's/-O[0-9]* //'
-e
's/-unroll2 //'
-e
's/-ip //'
-e
's/$/ -g/'
`
# Add -g and --with-debug.
cd
mysql-debug-%
{
mysql_version
}
&&
CFLAGS
=
\"
$CFLAGS
\"
\
CXXFLAGS
=
\"
$CXXFLAGS
\"
\
BuildMySQL
"--enable-shared
\
BuildMySQL
"--enable-shared
\
--with-debug
\
--with-debug
\
--with-innodb
\
--with-innodb
\
...
@@ -357,8 +364,8 @@ fi
...
@@ -357,8 +364,8 @@ fi
##############################################################################
##############################################################################
(
cd
mysql-release-%
{
mysql_version
}
&&
(
cd
mysql-release-%
{
mysql_version
}
&&
CFLAGS
=
"
${
MYSQL_BUILD_CFLAGS
:-
$RPM_OPT_FLAGS
}
-g
"
\
CFLAGS
=
\"
$CFLAGS
\
"
\
CXXFLAGS
=
"
${
MYSQL_BUILD_CXXFLAGS
:-
$RPM_OPT_FLAGS
-felide-constructors -fno-exceptions -fno-rtti
}
-g
"
\
CXXFLAGS
=
\"
$CXXFLAGS
\
"
\
BuildMySQL
"--enable-shared
\
BuildMySQL
"--enable-shared
\
--with-innodb
\
--with-innodb
\
%if %{CLUSTER_BUILD}
%if %{CLUSTER_BUILD}
...
@@ -833,6 +840,11 @@ fi
...
@@ -833,6 +840,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
*
Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
This should cover both gcc and icc flags. Fixes bug#40546.
*
Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
*
Fri Aug 29 2008 Kent Boortz <kent@mysql.com>
- Removed the
"Federated"
storage engine option, and enabled
in
all
- Removed the
"Federated"
storage engine option, and enabled
in
all
...
...
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