------- Comment #22 from developer at sandoe-acoustics dot co dot uk 2009-12-09 15:21 ------- (In reply to comment #21) > As a workaround in gcc I suggest to strip -lm in the darwin specific specs
one could also suggest the following patch to unix.exp (or providing a darwin infrastructure): @@ -30,8 +30,8 @@ #set_board_info host_library_path "[file dirname [file dirname [file dirname [file dirname [file dirname [exec [find_gcc] --print-prog-name=cc1]]]]]]/lib" -# Do not use -lm on Cygwin -if { [istarget "*-*-cygwin*"] } { +# Do not use -lm on Cygwin or Darwin +if { [istarget "*-*-cygwin*"] || [istarget "*-*-darwin*"] } { set_board_info mathlib "" } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42333