------- Comment #3 from howarth at nitro dot med dot uc dot edu 2010-08-12 00:57 ------- Note that while the proposed patch properly parses out -lm and -lpthread from linkages done with the compiler, this is insufficient to solve the problems with libjava. The hard coded use of -lm in libjava/Makefile.am has to be fixed as well since this links directly with ld via libtool.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45258