]> TLD Linux GIT Repositories - packages/gcc.git/blob - all-library-paths.patch
- fixed branch.diff, bug-111413.patch already in branch.diff
[packages/gcc.git] / all-library-paths.patch
1 --- gcc-11.2.0/gcc/gcc.cc.orig  2022-04-18 15:40:02.650553155 +0200
2 +++ gcc-11.2.0/gcc/gcc.cc       2022-04-19 09:31:21.340818868 +0200
3 @@ -7817,17 +7817,6 @@
4    *cp++ = '.';
5    *cp = '\0';
6  
7 -  /* Exclude directories that the linker is known to search.  */
8 -  if (linker
9 -      && IS_DIR_SEPARATOR (path[0])
10 -      && ((cp - path == 6
11 -          && filename_ncmp (path + 1, "lib", 3) == 0)
12 -         || (cp - path == 10
13 -             && filename_ncmp (path + 1, "usr", 3) == 0
14 -             && IS_DIR_SEPARATOR (path[4])
15 -             && filename_ncmp (path + 5, "lib", 3) == 0)))
16 -    return 0;
17 -
18    return (stat (path, &st) >= 0 && S_ISDIR (st.st_mode));
19  }
20