Commit b404131a authored by Sergei Golubchik's avatar Sergei Golubchik

oqgraph fix: not all gcc versions support -fvisibility-inlines-hidden

parent 2462ee05
......@@ -40,7 +40,9 @@ BOOST_CXXFLAGS = -frtti -fexceptions -fimplicit-templates
# (automatically gets enabled anyway by -O* on some architectures)
BOOST_CXXFLAGS+= -O3 -fstrict-aliasing
BOOST_CXXFLAGS+= -falign-loops
if HAVE_FVISIBILITY_INLINES_HIDDEN
BOOST_CXXFLAGS+= -fvisibility-inlines-hidden
endif
BOOST_CXXFLAGS+= -funroll-loops -fno-trapping-math
EXTRA_DIST = ha_oqgraph.h ha_oqgraph.cc graphcore.cc \
......
......@@ -2,9 +2,25 @@ MYSQL_STORAGE_ENGINE(oqgraph,,[Graph Storage Engine],
[Open Query Graph Computation Engine], [])
MYSQL_PLUGIN_DYNAMIC(oqgraph, [oqgraph_engine.la])
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_STANDALONE], false)
AM_CONDITIONAL([HAVE_DTRACE], false)
AM_CONDITIONAL(HAVE_FVISIBILITY_INLINES_HIDDEN, false)
AC_LANG_PUSH([C++])
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment