Commit f171556b authored by unknown's avatar unknown

yangf - yet another ndb gcc/g++ fix

Hopefully last one



ndb/config/Defs.LINUX.x86.GCC.mk:
  Only use __cxa_pure_virtual for binaries / so's
ndb/src/common/util/new.cpp:
  Remove __cxa_pure_virtual from here
parent 4539b639
......@@ -53,4 +53,4 @@ LINK.cc = $(PURE) $(CC) $(CCFLAGS) $(LDFLAGS)
LINK.c = $(PURE) $(CC) $(CFLAGS) $(LDFLAGS)
LDFLAGS_LAST = -lpthread -lrt
LDFLAGS_LAST = -lpthread -lrt $(NDB_TOP)/src/common/portlib/gcc.cpp
/**
* GCC linking problem...
*/
#if ( __GNUC__ == 3 )
extern "C" { int __cxa_pure_virtual() { return 0;} }
#endif
......@@ -37,10 +37,3 @@ void operator delete[] (void *ptr) throw ()
if (ptr)
free(ptr);
}
/**
* GCC linking problem...
*/
#if ( __GNUC__ == 3 )
extern "C" { int __cxa_pure_virtual() {return 0;} }
#endif
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