This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: [PATCH] Find MinGW in more places
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Sun, 9 Aug 2009 20:51:59 -0400
- Subject: Re: [PATCH] Find MinGW in more places
- References: <4A7F269B.6070009@gmail.com>
- Reply-to: cygwin-patches at cygwin dot com
On Sun, Aug 09, 2009 at 08:42:19PM +0100, Dave Korn wrote:
>
> Hi gang,
>
> I often run into this problem when I'm using a compiler that I've installed in
>a non-standard $prefix: the utils/mingw script expects to find the MinGW sysroot
>in the same place the compiler's --print-prog-name= option finds ld.exe, which
>won't be the case if you've got a binutils in your non-standard $prefix as well.
>
> The attached patch simply falls back to looking in the same set of directories
>relative to the root directory, which will locate anything installed with prefix
>/ or /usr. It would also work if it only looked in /usr, but I decided to
>mirror the existing behaviour only in a different prefix just for consistency; I
>could always simplify it if wanted.
>
>winsup/utils/ChangeLog:
>
> * mingw: Add fallbacks to search for MinGW components in standard
> install locations if not found in compiler's $prefix.
>
> Ok?
Yep.
Thanks.
cgf