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
e7fe2880
Commit
e7fe2880
authored
Nov 06, 2008
by
Joerg Bruehe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #40546 Debug server in RPM is built with compiler optimization
Prevent this by modifying CFLAGS and CXXFLAGS.
parent
0b38c93d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+21
-4
No files found.
support-files/mysql.spec.sh
View file @
e7fe2880
...
@@ -240,10 +240,8 @@ BuildMySQL() {
...
@@ -240,10 +240,8 @@ BuildMySQL() {
sh
-c
"PATH=
\"
${
MYSQL_BUILD_PATH
:-
$PATH
}
\"
\
sh
-c
"PATH=
\"
${
MYSQL_BUILD_PATH
:-
$PATH
}
\"
\
CC=
\"
${
CC
:-
$MYSQL_BUILD_CC
}
\"
\
CC=
\"
${
CC
:-
$MYSQL_BUILD_CC
}
\"
\
CXX=
\"
${
CXX
:-
$MYSQL_BUILD_CXX
}
\"
\
CXX=
\"
${
CXX
:-
$MYSQL_BUILD_CXX
}
\"
\
CFLAGS=
\"
${
MYSQL_BUILD_CFLAGS
:-
$RPM_OPT_FLAGS
}
\"
\
CFLAGS=
\"
$CFLAGS
\"
\
CXXFLAGS=
\"
${
MYSQL_BUILD_CXXFLAGS
:-
$RPM_OPT_FLAGS
\
CXXFLAGS=
\"
$CXXFLAGS
\"
\
-felide-constructors -fno-exceptions -fno-rtti \
}
\"
\
LDFLAGS=
\"
$MYSQL_BUILD_LDFLAGS
\"
\
LDFLAGS=
\"
$MYSQL_BUILD_LDFLAGS
\"
\
./configure
\
./configure
\
$*
\
$*
\
...
@@ -307,6 +305,10 @@ then
...
@@ -307,6 +305,10 @@ 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
}
#
#
# Only link statically on our i386 build host (which has a specially
# Only link statically on our i386 build host (which has a specially
# patched static glibc installed) - ia64 and x86_64 run glibc-2.3 (unpatched)
# patched static glibc installed) - ia64 and x86_64 run glibc-2.3 (unpatched)
...
@@ -314,6 +316,14 @@ fi
...
@@ -314,6 +316,14 @@ fi
#
#
for
servertype
in
'--with-debug=full'
' '
for
servertype
in
'--with-debug=full'
' '
do
do
(
# We are in a subshell, so we can modify variables just for one run.
if
test
"
$servertype
"
!=
' '
then
CFLAGS
=
`
echo
$CFLAGS
|
sed
-e
's/-O[0-9]* //'
-e
's/-unroll2 //'
-e
's/-ip //'
`
CXXFLAGS
=
`
echo
$CXXFLAGS
|
sed
-e
's/-O[0-9]* //'
-e
's/-unroll2 //'
-e
's/-ip //'
`
fi
BuildMySQL
"
\
BuildMySQL
"
\
%if %{STATIC_BUILD}
%if %{STATIC_BUILD}
--disable-shared
\
--disable-shared
\
...
@@ -335,6 +345,7 @@ do
...
@@ -335,6 +345,7 @@ do
--with-blackhole-storage-engine
\
--with-blackhole-storage-engine
\
--with-federated-storage-engine
\
--with-federated-storage-engine
\
--with-big-tables
$servertype
"
--with-big-tables
$servertype
"
if
test
"
$servertype
"
!=
' '
if
test
"
$servertype
"
!=
' '
then
then
# if this is not the regular build, we save the server binary
# if this is not the regular build, we save the server binary
...
@@ -344,6 +355,7 @@ do
...
@@ -344,6 +355,7 @@ do
make test-bt-debug
make test-bt-debug
make clean
make clean
fi
fi
)
done
done
./libtool
--mode
=
execute nm
--numeric-sort
sql/mysqld
>
sql/mysqld.sym
./libtool
--mode
=
execute nm
--numeric-sort
sql/mysqld
>
sql/mysqld.sym
...
@@ -795,6 +807,11 @@ fi
...
@@ -795,6 +807,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.
*
Mon Aug 18 2008 Joerg Bruehe <joerg@mysql.com>
*
Mon Aug 18 2008 Joerg Bruehe <joerg@mysql.com>
- Get rid of the
"warning: Installed (but unpackaged) file(s) found:"
- Get rid of the
"warning: Installed (but unpackaged) file(s) found:"
...
...
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