make-w32
[Top][All Lists]
Advanced

[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 */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]