]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/coreutils/coreutils-5.1.3/install-cross.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / coreutils / coreutils-5.1.3 / install-cross.patch
1 --- src/install.c~      2003-08-09 18:46:45.000000000 +0100
2 +++ src/install.c       2004-03-27 18:38:45.000000000 +0000
3 @@ -516,7 +516,14 @@
4  strip (const char *path)
5  {
6    int status;
7 -  pid_t pid = fork ();
8 +  pid_t pid;
9 +  char *strip_name;
10 +
11 +  strip_name = getenv ("STRIP");
12 +  if (strip_name == NULL)
13 +    strip_name = "strip";
14 +
15 +  pid = fork ();
16  
17    switch (pid)
18      {
19 @@ -524,7 +531,7 @@
20        error (EXIT_FAILURE, errno, _("fork system call failed"));
21        break;
22      case 0:                    /* Child. */
23 -      execlp ("strip", "strip", path, NULL);
24 +      execlp (strip_name, "strip", path, NULL);
25        error (EXIT_FAILURE, errno, _("cannot run strip"));
26        break;
27      default:                   /* Parent. */