]> git.pld-linux.org Git - packages/crossmingw32-binutils.git/blob - binutils-dll.patch
b271a23fa955362d8756cfa5dd3ecffb36c7f29e
[packages/crossmingw32-binutils.git] / binutils-dll.patch
1 --- binutils-2.15.91.0.2/binutils/dllwrap.c.orig        2004-07-28 06:36:09.000000000 +0200
2 +++ binutils-2.15.91.0.2/binutils/dllwrap.c     2004-07-31 20:23:00.454866160 +0200
3 @@ -253,7 +253,7 @@
4  
5    dash = NULL;
6    slash = NULL;
7 -  for (cp = name; *cp != '\0'; ++cp)
8 +  for (cp = prog_name; *cp != '\0'; ++cp)
9      {
10        if (*cp == '-')
11         dash = cp;
12 @@ -272,17 +272,17 @@
13    cmd = NULL;
14  
15    if (dash != NULL)
16 -    /* First, try looking for a prefixed PROG_NAME in the
17 -       PROGRAM_NAME directory, with the same prefix as PROGRAM_NAME.  */
18 -    cmd = look_for_prog (name, name, dash - name + 1);
19 +    /* First, try looking for a prefixed NAME in the
20 +       PROG_NAME directory, with the same prefix as PROG_NAME.  */
21 +    cmd = look_for_prog (name, prog_name, dash - prog_name + 1);
22  
23    if (slash != NULL && cmd == NULL)
24 -    /* Next, try looking for a PROG_NAME in the same directory as
25 +    /* Next, try looking for a NAME in the same directory as
26         that of this program.  */
27 -    cmd = look_for_prog (name, name, slash - name + 1);
28 +    cmd = look_for_prog (name, prog_name, slash - prog_name + 1);
29  
30    if (cmd == NULL)
31 -    /* Just return PROG_NAME as is.  */
32 +    /* Just return NAME as is.  */
33      cmd = xstrdup (name);
34  
35    return cmd;
This page took 0.055624 seconds and 2 git commands to generate.