diff options
Diffstat (limited to 'meta/packages/coreutils/coreutils-5.3.0/install-cross.patch')
-rw-r--r-- | meta/packages/coreutils/coreutils-5.3.0/install-cross.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/packages/coreutils/coreutils-5.3.0/install-cross.patch b/meta/packages/coreutils/coreutils-5.3.0/install-cross.patch new file mode 100644 index 0000000000..98ba3d916c --- /dev/null +++ b/meta/packages/coreutils/coreutils-5.3.0/install-cross.patch | |||
@@ -0,0 +1,27 @@ | |||
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. */ | ||