Install uses the strip program, which may or may not be intelligent 
enough to regocnize non-native binaries.

I am hoping my mailer doesn't wrap this.
This makes the install program aware of an environment variable "STRIP" 
for use as the strip program.  This is especially useful for 
cross-compilation environments.

-- bryan

--- src/install.c.orig  Tue May 14 18:24:37 2002
+++ src/install.c       Tue May 14 18:23:24 2002
@@ -525,6 +525,7 @@
  {
    int status;
    pid_t pid = fork ();
+  char *stripprog = getenv ("STRIP");

    switch (pid)
      {
@@ -532,7 +533,8 @@
        error (1, errno, _("fork system call failed"));
        break;
      case 0:                   /* Child. */
-      execlp ("strip", "strip", path, NULL);
+      stripprog = (stripprog)? stripprog: "strip";
+      execlp (stripprog, stripprog, path, NULL);
        error (1, errno, _("cannot run strip"));
        break;
      default:                  /* Parent. */


_______________________________________________
Bug-fileutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-fileutils

Reply via email to