Author: sebor
Date: Wed May 30 15:11:28 2007
New Revision: 542956
URL: http://svn.apache.org/viewvc?view=rev&rev=542956
Log:
2007-05-30 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-369
* gcc.config (LDSOFLAGS): For gcc 3.3 and prior added -shared-libgcc.
Modified:
incubator/stdcxx/trunk/etc/config/gcc.config
Modified: incubator/stdcxx/trunk/etc/config/gcc.config
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/etc/config/gcc.config?view=diff&rev=542956&r1=542955&r2=542956
==============================================================================
--- incubator/stdcxx/trunk/etc/config/gcc.config (original)
+++ incubator/stdcxx/trunk/etc/config/gcc.config Wed May 30 15:11:28 2007
@@ -87,6 +87,15 @@
LDSOFLAGS += -fPIC
endif
+ifeq ($(CXX_MAJOR),3)
+ ifeq ($(shell [ $(CXX_MINOR) -lt 4 ] && echo 1),1)
+ # for gcc 3 prior to gcc 3.4 force linking with libgcc_s.so
+ # and avoid linking with libgcc_s.a to get stack unwinding
+ # due to exceptions right (see STDCXX-369)
+ LDSOFLAGS += -shared-libgcc
+ endif
+endif
+
CXXFLAGS = -pedantic -nostdinc++
ifeq ($(CXX_MAJOR),2)