mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-03-07 15:37:05 +08:00
* 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.
This commit is contained in:
parent
bcaed0820d
commit
3c23a06daa
@ -1,3 +1,8 @@
|
||||
2004-05-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
|
||||
|
||||
* 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-21 Gary V. Vaughan <gary@gnu.org>
|
||||
|
||||
* tests/tagtrace.test: Forgot to add this file to the repository
|
||||
|
11
ltmain.in
11
ltmain.in
@ -4898,9 +4898,16 @@ check_executable(const char * path)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user