summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <joerg@trift2.>2006-11-07 16:01:54 +0100
committerunknown <joerg@trift2.>2006-11-07 16:01:54 +0100
commit6f65b2c0cc264cbdc9c2749dad89d71a4b73c626 (patch)
treea323876a668d25449b2249ef3bea035937ad4531
parent2886e07d3fa72d8aac8091c581adccb7a666a411 (diff)
downloadmariadb-git-6f65b2c0cc264cbdc9c2749dad89d71a4b73c626.tar.gz
Fix bug#24023: Let "ndb/src/common/portlib/gcc.cpp" export a dummy symbol.
ndb/src/common/portlib/gcc.cpp: Fix bug#24023: Make sure this module always exports some symbol, whether used anywhere or not.
-rw-r--r--ndb/src/common/portlib/gcc.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ndb/src/common/portlib/gcc.cpp b/ndb/src/common/portlib/gcc.cpp
index 66aa4812dc6..557c1ac3717 100644
--- a/ndb/src/common/portlib/gcc.cpp
+++ b/ndb/src/common/portlib/gcc.cpp
@@ -4,4 +4,7 @@
*/
#ifdef DEFINE_CXA_PURE_VIRTUAL
extern "C" { int __cxa_pure_virtual() { return 0;} }
+#else
+/* Some compiler/linker combinations fail on files without exported symbols. */
+extern "C" { int dummy_export_symbol() { return 0;} }
#endif