summaryrefslogtreecommitdiff
path: root/nt/gmake.defs
diff options
context:
space:
mode:
authorJason Rumney <jasonr@gnu.org>2008-01-20 23:17:25 +0000
committerJason Rumney <jasonr@gnu.org>2008-01-20 23:17:25 +0000
commitcf32108ec4fa2c2ce99071d97ccdbfe29e6b0921 (patch)
treec6bb3aff04a7b82b50c41b58216c7a58e159aff5 /nt/gmake.defs
parentf6f461323d9a844722c8f92d6549c797e13e19df (diff)
downloademacs-cf32108ec4fa2c2ce99071d97ccdbfe29e6b0921.tar.gz
(CYGWIN) [USING_SH]: Disable mapping of file permissions to NTFS ACLs.
Diffstat (limited to 'nt/gmake.defs')
-rw-r--r--nt/gmake.defs10
1 files changed, 10 insertions, 0 deletions
diff --git a/nt/gmake.defs b/nt/gmake.defs
index e782c203e76..6bc5e247886 100644
--- a/nt/gmake.defs
+++ b/nt/gmake.defs
@@ -99,6 +99,16 @@ sh_output := $(shell echo foo")
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 = $^