This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] adjust to mingw sysroot
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-patches <cygwin-patches at cygwin dot com>
- Date: Mon, 09 Aug 2010 17:38:36 -0500
- Subject: [PATCH] adjust to mingw sysroot
winsup/utils/mingw will break once mingw-* moves into a sysroot. The
attached patch allows for the sysroot without (hopefully) breaking
pre-sysroot installations.
It may be a bit premature to commit this, but this transition will
otherwise break the Cygwin build so I didn't want any surprises.
Yaakov
2010-08-09 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* mingw: Use sysroot, if present, for mingw_dir.
Index: mingw
===================================================================
RCS file: /cvs/src/src/winsup/utils/mingw,v
retrieving revision 1.6
diff -u -r1.6 mingw
--- mingw 10 Aug 2009 01:55:14 -0000 1.6
+++ mingw 9 Aug 2010 21:40:59 -0000
@@ -18,7 +18,11 @@
/*-mingw32 /usr/*-mingw32 /*-mingw* /usr/*-mingw*; do
case "$d" in
*\**) continue ;;
- *) mingw_dir=$d; break;
+ *) if [ -d "$d"/sys-root/mingw ]; then
+ mingw_dir=$d/sys-root/mingw
+ else
+ mingw_dir=$d;
+ fi; break;
esac
done