Author: sebor
Date: Thu Jan 12 11:48:44 2006
New Revision: 368450
URL: http://svn.apache.org/viewcvs?rev=368450&view=rev
Log:
2006-01-12 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-113
* gcc.config (LDLIBS) [Darwin]: Added -lgcc_eh.
Modified:
incubator/stdcxx/trunk/etc/config/gcc.config
Modified: incubator/stdcxx/trunk/etc/config/gcc.config
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/gcc.config?rev=368450&r1=368449&r2=368450&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/gcc.config (original)
+++ incubator/stdcxx/trunk/etc/config/gcc.config Thu Jan 12 11:48:44 2006
@@ -114,7 +114,13 @@
# gcc 3.x needs to explicitly link with libsupc++ for language support
# g++ 3.x links with it as well as libstdc++ automatically
LDLIBS = -lsupc++
-endif
+
+ ifeq ($(OSNAME),Darwin)
+ # link with gcc_eh to resolve the _Unwind_xxx functions
+ # (shouldn't we link with it on all platforms?)
+ LDLIBS += -lgcc_eh
+ endif
+endif # gcc > 2
# debug/optimization options
DEBUG_CXXFLAGS = -g