Ping. Any views on this patch or the principle of this feature
<http://lists.gnu.org/archive/html/bug-make/2006-09/msg8.html>?
On Thu, 7 Sep 2006, Joseph S. Myers wrote:
> Sometimes you wish to invoke a program with too many or too long arguments
> to fit in ARG_MAX. For exa
.
https://savannah.gnu.org/patch/index.php?5809
--
Joseph S. Myers
[EMAIL PROTECTED]
___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make
r flags, there is no reason to
override any makefile redefinition. */
(void) define_variable ("MFLAGS", 6, flagstring, o_env, 1);
@@ -2888,7 +3023,7 @@ define_makeflags (int all, int makefile)
else
{
/* Separate the variables from the switches with a "--" arg. */
- if (p[-1] != '-')
+ if (p[-1] != '-' || p[-2] != ' ')
{
/* We did not already write a trailing " -". */
*p++ = ' ';
@@ -2916,7 +3051,7 @@ define_makeflags (int all, int makefile)
words = 0;
--p;
}
- else if (p[-1] == '-')
+ else if (p[-1] == '-' && p[-2] == ' ')
/* Kill the final space and dash. */
p -= 2;
/* Terminate the string. */
@@ -3081,6 +3216,8 @@ die (int status)
/* Remove the intermediate files. */
remove_intermediates (0);
+ remove_tmpfiles ();
+
if (print_data_base_flag)
print_data_base ();
diff -rupN make.orig/make.h make/make.h
--- make.orig/make.h2007-07-04 19:35:19.0 +
+++ make/make.h 2007-09-27 21:55:45.0 +
@@ -445,6 +445,13 @@ const char *strcache_add (const char *st
const char *strcache_add_len (const char *str, int len);
int strcache_setbufsize (int size);
+/* argv handling. */
+char **buildargv (const char *);
+void freeargv (char **);
+char **dupargv (char **);
+int writeargv (char **, FILE *);
+void expandargv (int *, char ***);
+
#ifdef HAVE_VFORK_H
# include
#endif
--
Joseph S. Myers
[EMAIL PROTECTED]
___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make
Ping. Any comments yet on my patch
<http://lists.gnu.org/archive/html/bug-make/2007-09/msg00021.html> to add
@file support to GNU make to handle command lines exceeding OS length
limits?
--
Joseph S. Myers
[EMAIL PROTECTED]
___
Bug-make m
$$tmppo/*.po po && rm -rf $$tmppo
cd po && $(MAKE) update-po
$(MAKE) po-check
--
Joseph S. Myers
[EMAIL PROTECTED]
___
Bug-make mailing list
Bug-make@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-make
@@ -1232,6 +1232,7 @@ main (int argc, char **argv, char **envp
and we set the -p, -i and -e switches. Doesn't seem quite right. */
decode_env_switches (STRING_SIZE_TUPLE ("MFLAGS"));
#endif
+ expandargv (&argc, &argv);