[PATCH] Find MinGW in more places

Dave Korn dave.korn.cygwin@googlemail.com
Sun Aug 9 19:29:00 GMT 2009


     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?

    cheers,
      DaveK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find-mingw-more.diff
Type: text/x-c
Size: 694 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20090809/0e2a6605/attachment.bin>


More information about the Cygwin-patches mailing list