mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
yangf - yet another ndb gcc/g++ fix
Hopefully last one
This commit is contained in:
parent
0ee9f5fa19
commit
917427f3b7
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
7
ndb/src/common/portlib/gcc.cpp
Normal file
7
ndb/src/common/portlib/gcc.cpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
/**
|
||||
* 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
|
||||
|
|
Loading…
Add table
Reference in a new issue