------- Comment #8 from howarth at nitro dot med dot uc dot edu 2009-08-28 15:12 ------- Actually this is a bug in Xcode 3.2's linker that I wasn't able to get Apple to fix (radar 6320843) "duplicate symbols from static libraries not properly ignored". The fix for gcc 4.4.1 and trunk is to apply the patch...
--- gcc-4.4-20090327/gcc/cp/Make-lang.in.org 2009-03-27 20:58:00.000000000 -0400 +++ gcc-4.4-20090327/gcc/cp/Make-lang.in 2009-03-27 20:58:46.000000000 -0400 @@ -73,7 +73,7 @@ CXX_C_OBJS = attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o \ c-dump.o $(CXX_TARGET_OBJS) c-pretty-print.o c-opts.o c-pch.o \ incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o \ - c-gimplify.o c-omp.o tree-inline.o + c-gimplify.o c-omp.o # Language-specific object files for C++ and Objective C++. CXX_AND_OBJCXX_OBJS = cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o \ --- gcc-4.4-20090327/gcc/cp/Make-lang.in.orig 2009-03-27 21:04:25.000000000 -0400 +++ gcc-4.4-20090327/gcc/cp/Make-lang.in 2009-03-27 21:29:51.000000000 -0400 @@ -72,7 +72,7 @@ # Shared with C front end: CXX_C_OBJS = attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o \ c-dump.o $(CXX_TARGET_OBJS) c-pretty-print.o c-opts.o c-pch.o \ - incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o \ + incpath.o c-ppoutput.o c-cppbuiltin.o prefix.o \ c-gimplify.o c-omp.o # Language-specific object files for C++ and Objective C++. I considered submitting this for gcc 4.4.1 and trunk but figured it would be better to keep nagging Apple make their ld behave as a unix linker should. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41180