stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Lemings" <lemi...@roguewave.com>
Subject [PATCH] for STDCXX-262 "Multiple vtable definitions on Darwin platforms"
Date Tue, 13 Mar 2007 19:19:55 GMT

"[gcc/Mac OS X 10.4.6 Tiger] Multiple vtable definitions for
bad_exception and bad_alloc"

$ svn diff etc/config/GNUmakefile.lib
Index: etc/config/GNUmakefile.lib
===================================================================
--- etc/config/GNUmakefile.lib  (revision 517771)
+++ etc/config/GNUmakefile.lib  (working copy)
@@ -39,6 +39,10 @@
 ONE_REPOSITORY = 1
 include ../makefile.common
 
+ifeq ($(findstring darwin,$(PLATFORM)),darwin)
+LDSOFLAGS   += -dynamiclib
+endif
+
 CXXFLAGS    += $(PICFLAGS)
 LDFLAGS     += $(LDSOFLAGS) $(MAPFLAGS) $(MAPFILE)
 

Tested with gcc-4.2-20070307 snapshot on Mac OS X 10.4.8.
 
Eric.

Mime
View raw message