You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by fa...@apache.org on 2008/02/28 18:42:26 UTC

svn commit: r632071 - in /stdcxx/trunk: etc/config/gcc.config include/rw/_config-gcc.h

Author: faridz
Date: Thu Feb 28 09:42:20 2008
New Revision: 632071

URL: http://svn.apache.org/viewvc?rev=632071&view=rev
Log:
2008-02-28  Farid Zaripov  <fa...@epam.com>

	STDCXX-507
	* etc/config/gcc.config [CYGWIN]: #define _RWSHARED in shared builds.
	* include/rw/_config-gcc.h [__CYGWIN__ && _RWSHARED]: disable exporting
	template instantiations in shared builds.

Modified:
    stdcxx/trunk/etc/config/gcc.config
    stdcxx/trunk/include/rw/_config-gcc.h

Modified: stdcxx/trunk/etc/config/gcc.config
URL: http://svn.apache.org/viewvc/stdcxx/trunk/etc/config/gcc.config?rev=632071&r1=632070&r2=632071&view=diff
==============================================================================
--- stdcxx/trunk/etc/config/gcc.config (original)
+++ stdcxx/trunk/etc/config/gcc.config Thu Feb 28 09:42:20 2008
@@ -220,6 +220,7 @@
 
 ifneq ($(findstring CYGWIN,$(OSNAME)),)
     SHARED_SUFFIX = .dll
+    SHARED_CPPFLAGS += -D_RWSHARED
     LDFLAGS += -Wl,-force-exe-suffix
 endif
 

Modified: stdcxx/trunk/include/rw/_config-gcc.h
URL: http://svn.apache.org/viewvc/stdcxx/trunk/include/rw/_config-gcc.h?rev=632071&r1=632070&r2=632071&view=diff
==============================================================================
--- stdcxx/trunk/include/rw/_config-gcc.h (original)
+++ stdcxx/trunk/include/rw/_config-gcc.h Thu Feb 28 09:42:20 2008
@@ -129,10 +129,11 @@
 #    define _RWSTD_NO_DEPRECATED_LIBC_IN_STD
 #  endif
 
-   // exception::what() is incorrectly detected as not defined
-   // causing linker errors due to multiple definitions; see
-   // STDCXX-338
-#  undef _RWSTD_NO_EXCEPTION_WHAT
+#  ifdef _RWSHARED
+     // disabe exporting timeplate instantations in shared builds
+     // see STDCXX-507
+#    define _RWSTD_NO_EXTERN_TEMPLATE
+#  endif
 #endif   // __CYGWIN__
 
 #ifdef _RWSTD_OS_OSF1