[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
WIN32/MinGW patch
From: |
Bob Friesenhahn |
Subject: |
WIN32/MinGW patch |
Date: |
Fri, 21 May 2004 13:40:20 -0500 (CDT) |
I propose that the following patch to libtool be applied. Currently
the executable driver program doesn't compile under MinGW since the
WIN32 API does not support S_IXOTH or S_IXGRP.
Ok to commit?
Bob
Index: ChangeLog
===================================================================
RCS file: /cvsroot/libtool/libtool/ChangeLog,v
retrieving revision 1.1498
diff -u -r1.1498 ChangeLog
--- ChangeLog 18 May 2004 04:49:57 -0000 1.1498
+++ ChangeLog 21 May 2004 17:35:08 -0000
@@ -1,3 +1,8 @@
+2004-05-21 Bob Friesenhahn <address@hidden>
+
+ * ltmain.sh (check_executable): The WIN32 API and MinGW do not support
+ S_IXOTH and S_IXGRP so use of these modes should be conditional.
+
2004-05-18 Peter O'Gorman <address@hidden>
* m4/libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER): Make this an m4_defun,
Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.396
diff -u -r1.396 ltmain.in
--- ltmain.in 17 May 2004 16:41:22 -0000 1.396
+++ ltmain.in 21 May 2004 17:35:09 -0000
@@ -4898,9 +4898,16 @@
return 0;
if ((stat (path, &st) >= 0) &&
- (((st.st_mode & S_IXOTH) == S_IXOTH) ||
+ (
+ /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
+#if defined (S_IXOTH)
+ ((st.st_mode & S_IXOTH) == S_IXOTH) ||
+#endif
+#if defined (S_IXGRP)
((st.st_mode & S_IXGRP) == S_IXGRP) ||
- ((st.st_mode & S_IXUSR) == S_IXUSR)))
+#endif
+ ((st.st_mode & S_IXUSR) == S_IXUSR))
+ )
return 1;
else
return 0;
- WIN32/MinGW patch,
Bob Friesenhahn <=