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
5eae48c9
Commit
5eae48c9
authored
May 15, 2010
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oqgraph fix: not all gcc versions support -fvisibility-inlines-hidden
parent
3b98d69d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
storage/oqgraph/Makefile.am
storage/oqgraph/Makefile.am
+2
-0
storage/oqgraph/plug.in
storage/oqgraph/plug.in
+16
-0
No files found.
storage/oqgraph/Makefile.am
View file @
5eae48c9
...
@@ -40,7 +40,9 @@ BOOST_CXXFLAGS = -frtti -fexceptions -fimplicit-templates
...
@@ -40,7 +40,9 @@ BOOST_CXXFLAGS = -frtti -fexceptions -fimplicit-templates
# (automatically gets enabled anyway by -O* on some architectures)
# (automatically gets enabled anyway by -O* on some architectures)
BOOST_CXXFLAGS
+=
-O3
-fstrict-aliasing
BOOST_CXXFLAGS
+=
-O3
-fstrict-aliasing
BOOST_CXXFLAGS
+=
-falign-loops
BOOST_CXXFLAGS
+=
-falign-loops
if
HAVE_FVISIBILITY_INLINES_HIDDEN
BOOST_CXXFLAGS
+=
-fvisibility-inlines-hidden
BOOST_CXXFLAGS
+=
-fvisibility-inlines-hidden
endif
BOOST_CXXFLAGS
+=
-funroll-loops
-fno-trapping-math
BOOST_CXXFLAGS
+=
-funroll-loops
-fno-trapping-math
EXTRA_DIST
=
ha_oqgraph.h ha_oqgraph.cc graphcore.cc
\
EXTRA_DIST
=
ha_oqgraph.h ha_oqgraph.cc graphcore.cc
\
...
...
storage/oqgraph/plug.in
View file @
5eae48c9
...
@@ -2,9 +2,25 @@ MYSQL_STORAGE_ENGINE(oqgraph,,[Graph Storage Engine],
...
@@ -2,9 +2,25 @@ MYSQL_STORAGE_ENGINE(oqgraph,,[Graph Storage Engine],
[Open Query Graph Computation Engine], [])
[Open Query Graph Computation Engine], [])
MYSQL_PLUGIN_DYNAMIC(oqgraph, [oqgraph_engine.la])
MYSQL_PLUGIN_DYNAMIC(oqgraph, [oqgraph_engine.la])
MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS(oqgraph, [ha_oqgraph.cc])
MYSQL_PLUGIN_DEPENDS_ON_MYSQL_INTERNALS(oqgraph, [ha_oqgraph.cc])
MYSQL_PLUGIN_ACTIONS(oqgraph,[
AC_LANG_PUSH([C++])
AC_MSG_CHECKING([whether compiler supports -fvisibility-inlines-hidden])
OLD_CXXFLAGS=$CXXFLAGS
CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
AC_TRY_COMPILE([],[],[
AM_CONDITIONAL(HAVE_FVISIBILITY_INLINES_HIDDEN, true)
AC_MSG_RESULT([yes])
], [
AC_MSG_RESULT([no])
])
CXXFLAGS=$OLD_CXXFLAGS
AC_LANG_POP()
])
AM_CONDITIONAL([BUILD_OQGRAPH_FOR_MYSQL], true)
AM_CONDITIONAL([BUILD_OQGRAPH_FOR_MYSQL], true)
AM_CONDITIONAL([BUILD_OQGRAPH_STANDALONE], false)
AM_CONDITIONAL([BUILD_OQGRAPH_STANDALONE], false)
AM_CONDITIONAL([HAVE_DTRACE], false)
AM_CONDITIONAL([HAVE_DTRACE], false)
AM_CONDITIONAL(HAVE_FVISIBILITY_INLINES_HIDDEN, false)
AC_LANG_PUSH([C++])
AC_LANG_PUSH([C++])
...
...
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