changeset 79893:98745918608f

(CYGWIN) [USING_SH]: Disable mapping of file permissions to NTFS ACLs.
author Jason Rumney <jasonr@gnu.org>
date Sun, 20 Jan 2008 23:17:10 +0000
parents 3bebec5c2613
children 7fc9acb927fc
files nt/gmake.defs
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/nt/gmake.defs	Sun Jan 20 05:20:30 2008 +0000
+++ b/nt/gmake.defs	Sun Jan 20 23:17:10 2008 +0000
@@ -99,6 +99,16 @@
 ifeq "$(sh_output)" ""
 NEW_CYGWIN = 1
 endif
+
+# By default, newer versions of Cygwin mess with NTFS ACLs in an
+# attempt to emulate traditional posix file permissions. This can
+# cause bad effects, such as .exe files that are missing the
+# FILE_EXECUTE/FILE_GENERIC_EXECUTE permissions when they are created
+# with Cygwin commands that don't expect to be creating executable
+# files. Then when we later use a non-Cygwin program to create the
+# real .exe, the previous Cygwin defined ACL sticks.
+CYGWIN=nontsec
+export CYGWIN
 endif
 
 ALL_DEPS	= $^