stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r542956 - /incubator/stdcxx/trunk/etc/config/gcc.config
Date Wed, 30 May 2007 22:11:28 GMT
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  <sebor@roguewave.com>

	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)



Mime
View raw message