------- Comment #16 from dje at gcc dot gnu dot org 2007-10-10 03:17 ------- lib1.a depends on lib2.a main depends on lib1.a, but does not explicitly link with lib2.a
Your proposed solution requires that the link of main see all dependent libraries. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33704