From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4109 invoked by alias); 9 Dec 2009 16:48:20 -0000 Received: (qmail 3904 invoked by uid 48); 9 Dec 2009 16:47:57 -0000 Date: Wed, 09 Dec 2009 16:48:00 -0000 Message-ID: <20091209164757.3903.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug other/42333] complex division failure on darwin10 with -lm In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "howarth at nitro dot med dot uc dot edu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-12/txt/msg00961.txt.bz2 ------- Comment #23 from howarth at nitro dot med dot uc dot edu 2009-12-09 16:47 ------- Wouldn't that be limited to a subset of darwin.... @@ -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[921]*"] } { set_board_info mathlib "" } I thought at some point in past c code on darwin did require linking in -lm, no? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42333