summaryrefslogtreecommitdiff
path: root/libstdc++-v3/config.h.in
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-11 21:10:10 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-11 21:10:10 +0000
commitb486b302878b850ea76f0d475538e94add2429b5 (patch)
tree2ec1fea83044eda777ab19f05512196d135e86c7 /libstdc++-v3/config.h.in
parent0b5213559d10fca2937b4ef8c9722523bc29648b (diff)
downloadgcc-b486b302878b850ea76f0d475538e94add2429b5.tar.gz
2002-10-11 Benjamin Kosnik <bkoz@redhat.com>
* acconfig.h (_GLIBCPP_SYMVER): Add. (_GLIBCPP_ASM_SYMVER): Add. * acinclude.m4 (GLIBCPP_ENABLE_SYMVERS): Define _GLIBCPP_SYMVER. * aclocal.m4: Regenerate. * config.h.in: Regenerate. * configure: Regenerate. * include/bits/c++config (_GLIBCPP_AT_AT): Define, as an expedient hack around m4 issues with quoting '@'. * src/locale.cc: Use _GLIBCPP_ASM_SYMVER. * src/globals.cc: Same. * testsuite/22_locale/ctor_copy_dtor.cc (test04): Fix for non-glibc systems. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@58065 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/config.h.in')
-rw-r--r--libstdc++-v3/config.h.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/libstdc++-v3/config.h.in b/libstdc++-v3/config.h.in
index a310bc8454d..c565a8ba006 100644
--- a/libstdc++-v3/config.h.in
+++ b/libstdc++-v3/config.h.in
@@ -24,6 +24,20 @@
// Define to use concept checking code from the boost libraries.
#undef _GLIBCPP_CONCEPT_CHECKS
+// Define to use symbol versioning in the shared library.
+#undef _GLIBCPP_SYMVER
+
+// Define symbol versioning in assember directives. If symbol
+// versioning is beigng used, and the assembler supports this kind of
+// thing, then use it.
+// NB: _GLIBCPP_AT_AT is a hack to work around quoting issues in m4.
+#if _GLIBCPP_SYMVER
+ #define _GLIBCPP_ASM_SYMVER(cur, old, version) \
+ asm (".symver " #cur "," #old _GLIBCPP_AT_AT #version);
+#else
+ #define _GLIBCPP_ASM_SYMVER(cur, old, version)
+#endif
+
// Define if mbstate_t exists in wchar.h.
#undef HAVE_MBSTATE_T