summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <kent@mysql.com>2005-12-03 20:52:34 +0100
committerunknown <kent@mysql.com>2005-12-03 20:52:34 +0100
commit85d8949f6deb5be6fb89e719aa2fbce169306383 (patch)
tree41d7b6f4feb0df4ba3909fa09e8f7eae6f73ffff /include
parentd2c9e52adc90600d0c2d864e1e5d1ccd981a118d (diff)
downloadmariadb-git-85d8949f6deb5be6fb89e719aa2fbce169306383.tar.gz
my_global.h:
Make __cxa_pure_virtual weak symbol include/my_global.h: Make __cxa_pure_virtual weak symbol
Diffstat (limited to 'include')
-rw-r--r--include/my_global.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/my_global.h b/include/my_global.h
index 851033cf366..e62f6c269aa 100644
--- a/include/my_global.h
+++ b/include/my_global.h
@@ -453,6 +453,17 @@ typedef unsigned short ushort;
#define __attribute__(A)
#endif
+/*
+ Wen using the embedded library, users might run into link problems,
+ dupicate declaration of __cxa_pure_virtual, solved by declaring it a
+ weak symbol.
+*/
+#ifdef USE_MYSYS_NEW
+C_MODE_START
+int __cxa_pure_virtual () __attribute__ ((weak));
+C_MODE_END
+#endif
+
/* From old s-system.h */
/*