From f15d3d8a71836ee7baa622ee01e3e547db2b47e5 Mon Sep 17 00:00:00 2001 From: "joerg@trift2." <> Date: Tue, 7 Nov 2006 16:01:54 +0100 Subject: [PATCH] Fix bug#24023: Let "ndb/src/common/portlib/gcc.cpp" export a dummy symbol. --- ndb/src/common/portlib/gcc.cpp | 3 +++ 1 file changed, 3 insertions(+) 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