[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug in the expansion of $(MAKE) in GNU make 3.81
From: |
Eli Zaretskii |
Subject: |
Re: Bug in the expansion of $(MAKE) in GNU make 3.81 |
Date: |
Thu, 16 Nov 2006 23:10:13 +0200 |
> Date: Thu, 16 Nov 2006 21:51:20 +0100
> From: Benoit Sigoure <address@hidden>
>
> I have the same problem with stock cygwin GNU make 3.81:
Thanks for testing. Does the patch below give good results?
2006-11-16 Eli Zaretskii <address@hidden>
* main.c (main) [HAVE_DOS_PATHS]: Treat DOS style argv[0] with
backslashes and drive letters as absolute.
--- main.c~0 2006-03-20 06:36:37.000000000 +0200
+++ main.c 2006-11-16 23:04:00.642263000 +0200
@@ -1296,7 +1296,12 @@ main (int argc, char **argv, char **envp
argv[0] = concat (current_directory, "/", argv[0]);
#else /* !__MSDOS__ */
if (current_directory[0] != '\0'
- && argv[0] != 0 && argv[0][0] != '/' && strchr (argv[0], '/') != 0)
+ && argv[0] != 0 && argv[0][0] != '/' && strchr (argv[0], '/') != 0
+#ifdef HAVE_DOS_PATHS
+ && (argv[0][0] != '\\' && (!argv[0][0] || argv[0][1] != ':'))
+ && strchr (argv[0], '\\') != 0
+#endif
+ )
argv[0] = concat (current_directory, "/", argv[0]);
#endif /* !__MSDOS__ */
#endif /* WINDOWS32 */
- Bug in the expansion of $(MAKE) in GNU make 3.81, Benoit Sigoure, 2006/11/16
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Eli Zaretskii, 2006/11/16
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Eli Zaretskii, 2006/11/16
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Benoit Sigoure, 2006/11/16
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81,
Eli Zaretskii <=
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Benoit Sigoure, 2006/11/17
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Eli Zaretskii, 2006/11/17
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Benoit Sigoure, 2006/11/17
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Eli Zaretskii, 2006/11/17
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Bill Hoffman, 2006/11/17
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Eli Zaretskii, 2006/11/18
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Paul Smith, 2006/11/18
- Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Bill Hoffman, 2006/11/16
Re: Bug in the expansion of $(MAKE) in GNU make 3.81, Earnie Boyd, 2006/11/17