From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120076 invoked by alias); 26 Feb 2016 07:49:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 120061 invoked by uid 89); 26 Feb 2016 07:49:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=H*M:cygwin, H*f:sk:56CF8A6, H*MI:sk:56CF8A6, H*i:sk:56CF8A6 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 26 Feb 2016 07:49:15 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 1CF81461D3 for ; Fri, 26 Feb 2016 07:49:14 +0000 (UTC) Received: from [10.10.116.34] (ovpn-116-34.rdu2.redhat.com [10.10.116.34]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u1Q7nCDE025957 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 26 Feb 2016 02:49:13 -0500 Subject: Re: gcc: link scan order of /usr/lib and /usr/lib/w32api To: cygwin@cygwin.com References: <56CF3D8B.2050703@cygwin.com> <56CF8A6C.3070706@users.sourceforge.net> From: Yaakov Selkowitz Message-ID: <56D0037C.5050302@cygwin.com> Date: Fri, 26 Feb 2016 07:49:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <56CF8A6C.3070706@users.sourceforge.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-02/txt/msg00398.txt.bz2 On 2016-02-25 17:12, JonY wrote: > On 2/26/2016 01:44, Yaakov Selkowitz wrote: >> JonY, >> >> It has been brought to my attention that /usr/lib/w32api is now taking >> precedence over /usr/lib, which is a result of this commit: >> >> https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=227962 >> https://github.com/gcc-mirror/gcc/commit/c1b7008c95f97dd7c11997e7be7be7b58d113db0 >> >> >> This is incorrect, and results in the unfortunately-named w32api >> libuuid.a being found instead of the completely unrelated *NIX libuuid >> (which is what *NIX software expects to find). >> >> Linking from /usr/lib/w32api is handled in binutils, and this is the fix >> that my cygwin cross-toolchains are using to support sysroots: >> >> https://github.com/cygwinports/cygwin32-binutils/blob/master/01-w32api-sysroot.patch >> >> >> Please revert r227962. > > Ok, I'll do a new release soon. Here's a patch: https://github.com/cygwinports/gcc/blob/master/0027-link-w32api.patch -- Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple