This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]