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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5863af1f
Commit
5863af1f
authored
Jun 11, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for ndb compile problem on non gcc
parent
8b7f6aaa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
configure.in
configure.in
+5
-3
ndb/config/common.mk.am
ndb/config/common.mk.am
+1
-2
No files found.
configure.in
View file @
5863af1f
...
@@ -370,12 +370,15 @@ AC_SUBST(INSTALL_SCRIPT)
...
@@ -370,12 +370,15 @@ AC_SUBST(INSTALL_SCRIPT)
export
CC CXX CFLAGS LD LDFLAGS AR
export
CC CXX CFLAGS LD LDFLAGS AR
ndb_cxxflags_fix
=
if
test
"
$GXX
"
=
"yes"
if
test
"
$GXX
"
=
"yes"
then
then
# mysqld requires -fno-implicit-templates.
# mysqld requires -fno-implicit-templates.
# Disable exceptions as they seams to create problems with gcc and threads.
# Disable exceptions as they seams to create problems with gcc and threads.
# mysqld doesn't use run-time-type-checking, so we disable it.
# mysqld doesn't use run-time-type-checking, so we disable it.
CXXFLAGS
=
"
$CXXFLAGS
-fno-implicit-templates -fno-exceptions -fno-rtti"
CXXFLAGS
=
"
$CXXFLAGS
-fno-implicit-templates -fno-exceptions -fno-rtti"
# ndb cannot be compiled with -fno-implicit-templaces
ndb_cxxflags_fix
=
-fimplicit-templates
# If you are using 'gcc' 3.0 (not g++) to compile C++ programs on Linux,
# If you are using 'gcc' 3.0 (not g++) to compile C++ programs on Linux,
# we will gets some problems when linking static programs.
# we will gets some problems when linking static programs.
...
@@ -2892,22 +2895,21 @@ if test X"$have_ndbcluster" = Xyes
...
@@ -2892,22 +2895,21 @@ if test X"$have_ndbcluster" = Xyes
then
then
MAKE_BINARY_DISTRIBUTION_OPTIONS="
$MAKE_BINARY_DISTRIBUTION_OPTIONS
--with-ndbcluster
"
MAKE_BINARY_DISTRIBUTION_OPTIONS="
$MAKE_BINARY_DISTRIBUTION_OPTIONS
--with-ndbcluster
"
CXXFLAGS="
$CXXFLAGS
\$
(
NDB_CXXFLAGS
)
"
if test "
$with_debug
" = "
yes
"
if test "
$with_debug
" = "
yes
"
then
then
# Medium debug.
# Medium debug.
NDB_DEFS="
-DVM_TRACE
-DERROR_INSERT
-DARRAY_GUARD
"
NDB_DEFS="
-DVM_TRACE
-DERROR_INSERT
-DARRAY_GUARD
"
CXXFLAGS="
$CXXFLAGS
\$
(
NDB_CXXFLAGS
)
\$
(
NDB_CXXFLAGS_LOC
)
\$
(
NDB_CXXFLAGS_DEBUG_LOC
)
"
elif test "
$with_debug
" = "
full
"
elif test "
$with_debug
" = "
full
"
then
then
NDB_DEFS="
-DVM_TRACE
-DERROR_INSERT
-DARRAY_GUARD
"
NDB_DEFS="
-DVM_TRACE
-DERROR_INSERT
-DARRAY_GUARD
"
CXXFLAGS="
$CXXFLAGS
\$
(
NDB_CXXFLAGS
)
\$
(
NDB_CXXFLAGS_LOC
)
\$
(
NDB_CXXFLAGS_DEBUG_LOC
)
"
else
else
NDB_DEFS="
-DNDEBUG
"
NDB_DEFS="
-DNDEBUG
"
CXXFLAGS="
$CXXFLAGS
\$
(
NDB_CXXFLAGS
)
\$
(
NDB_CXXFLAGS_LOC
)
\$
(
NDB_CXXFLAGS_RELEASE_LOC
)
"
fi
fi
fi
fi
AC_SUBST([NDB_DEFS])
AC_SUBST([NDB_DEFS])
AC_SUBST([ndb_cxxflags_fix])
ndb_transporter_opt_objs=""
ndb_transporter_opt_objs=""
if test X"
$have_ndb_shm
" = Xyes
if test X"
$have_ndb_shm
" = Xyes
...
...
ndb/config/common.mk.am
View file @
5863af1f
...
@@ -9,5 +9,4 @@ mgmapiincludedir = "$(pkgincludedir)/ndb/mgmapi"
...
@@ -9,5 +9,4 @@ mgmapiincludedir = "$(pkgincludedir)/ndb/mgmapi"
INCLUDES = $(INCLUDES_LOC)
INCLUDES = $(INCLUDES_LOC)
LDADD = $(top_srcdir)/ndb/src/common/portlib/gcc.cpp $(LDADD_LOC)
LDADD = $(top_srcdir)/ndb/src/common/portlib/gcc.cpp $(LDADD_LOC)
DEFS = @DEFS@ @NDB_DEFS@ $(DEFS_LOC) $(NDB_EXTRA_FLAGS)
DEFS = @DEFS@ @NDB_DEFS@ $(DEFS_LOC) $(NDB_EXTRA_FLAGS)
# ndb cannot be compiled with -fno-implicit-templaces
NDB_CXXFLAGS=@ndb_cxxflags_fix@ $(NDB_CXXFLAGS_LOC)
NDB_CXXFLAGS=-fimplicit-templates
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