I've added a simple getenv to allow install to use a proper strip. This
came about while trying to develop some software for GPE
(gpe.handhelds.org). Also, I noticed that it was suggested to be done
in the TODO file.
Patch is attached.
(Note, I'm not on the list, so I will only receive replies if Cc'd)
Thanks,
Chuck Mason
--- install-cvs.c 2004-01-07 16:45:21.000000000 -0500
+++ install.c 2004-01-07 16:50:09.000000000 -0500
@@ -524,9 +524,21 @@
error (EXIT_FAILURE, errno, _("fork system call failed"));
break;
case 0: /* Child. */
- execlp ("strip", "strip", path, NULL);
+ {
+ /* Use environment variable STRIP, this
+ * works best with GNU makefile and autofoo.
+ * - Charles Mason <[EMAIL PROTECTED]> */
+ char *fexec = (char *)getenv("STRIP");
+
+ if (!fexec) {
+ execlp ("strip", "strip", path, NULL);
+ } else {
+ execlp (fexec, fexec, path, NULL);
+ }
+
error (EXIT_FAILURE, errno, _("cannot run strip"));
break;
+ }
default: /* Parent. */
/* Parent process. */
while (pid != wait (&status)) /* Wait for kid to finish. */
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils