http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54708
--- Comment #4 from Hubert <lestath at interia dot pl> 2012-09-26 12:52:49 UTC --- (In reply to comment #2) > This is not a bug as ubuntu uses --as-needed as the default. If this is ubuntu feature we would obtain the same results using gcc-4.4, whereas in this case the library can be placed either before or after source.