* mingw: Add fallbacks to search for MinGW components in standard

install locations if not found in compiler's $prefix.
This commit is contained in:
Dave Korn 2009-08-10 01:55:14 +00:00
parent 2d7697cad1
commit 4f2e34d821
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-08-10 Dave Korn <dave.korn.cygwin@gmail.com>
* mingw: Add fallbacks to search for MinGW components in standard
install locations if not found in compiler's $prefix.
2009-08-09 Corinna Vinschen <corinna@vinschen.de>
* mount.cc (do_mount): Don't exit, just return.

View File

@ -14,7 +14,8 @@ dir=$(cd $(dirname $("$compiler" -print-prog-name=ld))/../..; pwd)
#
[ "$dir" = '/' ] && dir=''
mingw_dir=''
for d in "$dir"/*-mingw32 "$dir"/usr/*-mingw32 "$dir"/*-mingw* "$dir"/usr/*-mingw*; do
for d in "$dir"/*-mingw32 "$dir"/usr/*-mingw32 "$dir"/*-mingw* "$dir"/usr/*-mingw* \
/*-mingw32 /usr/*-mingw32 /*-mingw* /usr/*-mingw*; do
case "$d" in
*\**) continue ;;
*) mingw_dir=$d; break;