http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49992

--- Comment #19 from Iain Sandoe <iains at gcc dot gnu.org> 2011-08-09 14:10:46 
UTC ---
(In reply to comment #18)
> The radr://6320843, "duplicate symbols from static libraries not properly
> ignored", has been open since 26-Oct-2008. I later opened radr://6733684,
> "duplicate symbols in static libs not properly ignored when linking in 10A###"
> with additional examples

...
> and it was closed as a duplicate without additional
> comment. I don't think Apple views this as a critical bug but rather coddling
> lazy programmers.

not sure if it's a 'laziness' thing - the flag was added in a quite definite
manner (it's just not clear as to what problem it was resolving).

==

it's also not clear if Apple acknowledge that it's a bug and it was 'fixed' at
least on Darwin 9/ld85 (and then 'unfixed' on darwin >= 10) - or whether
there's some other reason that it doesn't manifest on darwin9.

anyway - you could try editing gcc/configure and setting ranlib_flags = "" on
Darwin11 and reg-test.

if that is a solution to the problem, and no-one can come up with any reason
why we should include common symbols in the table of contents for darwin
archives, then maybe we should just do this for darwin >= 9.

Reply via email to