From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 38130 invoked by alias); 4 Jun 2015 17:01:41 -0000 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 Received: (qmail 38073 invoked by uid 48); 4 Jun 2015 17:01:36 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/54304] linking stage picks up system mpfr instead of in-tree version Date: Thu, 04 Jun 2015 17:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-06/txt/msg00443.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=54304 --- Comment #16 from Andrew Pinski --- Just to let everyone know this is how Darin's ld work. It searches for shared libraries through all of the library patches and then if it does not find one, it searches for a static library. So for Darwin, you need to supply the full path to the static library or name the static library slightly different. This behavior is different from all other Unix ld's too. It might be too hard to solve and really happens with projects too where it depends on standard Unix ld behavior.