[Bug other/42333] complex division failure on darwin10 with -lm
developer at sandoe-acoustics dot co dot uk
gcc-bugzilla@gcc.gnu.org
Wed Dec 9 15:21:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list