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
f52dcd1a
Commit
f52dcd1a
authored
Mar 19, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify BUG#26701 patch and a different location to also use the correct arguments for GCC 5 and 6.
BUILD/check-cpu: case -> if ... -lt
parent
f8d58c1d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
15 deletions
+11
-15
BUILD/check-cpu
BUILD/check-cpu
+11
-15
No files found.
BUILD/check-cpu
View file @
f52dcd1a
...
...
@@ -166,27 +166,23 @@ check_cpu () {
# different gcc backends (and versions) have different CPU flags
case
`
gcc
-dumpmachine
`
in
i?86-
*
)
case
"
$cc_verno
"
in
3.4
*
|
3.5
*
|
4.
*
)
check_cpu_args
=
'-mtune=$cpu_arg -march=$cpu_arg'
;;
*
)
check_cpu_args
=
'-mcpu=$cpu_arg -march=$cpu_arg'
;;
esac
if
test
"
$cc_verno
"
-lt
"3.4"
then
check_cpu_args
=
'-mcpu=$cpu_arg'
else
check_cpu_args
=
'-mtune=$cpu_arg'
fi
;;
ppc-
*
)
check_cpu_args
=
'-mcpu=$cpu_arg -mtune=$cpu_arg'
;;
x86_64-
*
)
case
"
$cc_verno
"
in
3.4
*
|
3.5
*
|
4.
*
)
check_cpu_args
=
'-mtune=$cpu_arg'
;;
*
)
if
test
"
$cc_verno
"
-lt
"3.4"
then
check_cpu_args
=
'-mcpu=$cpu_arg'
;;
esac
else
check_cpu_args
=
'-mtune=$cpu_arg'
fi
;;
*
)
check_cpu_cflags
=
""
...
...
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