biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / misc / binutils / windres-locate-gcc.patch
blob721667c62cecc9c472a119f29646df9ec0f730d8
1 diff --git a/binutils/resrc.c b/binutils/resrc.c
2 index a875c3a4..0411d047 100644
3 --- a/binutils/resrc.c
4 +++ b/binutils/resrc.c
5 @@ -521,7 +521,13 @@ read_rc_file (const char *filename, const char *preprocessor,
7 cpp_pipe = 0;
9 - if (dash)
10 + /* Nixpkgs specific : look first at the prefixed path
11 + ( there should be no gcc in the binutils folder ) */
12 + if (slash && dash) {
13 + cpp_pipe = look_for_default(cmd, slash + 1, dash - slash, preprocargs, filename);
14 + }
16 + if (dash && ! cpp_pipe)
18 /* First, try looking for a prefixed gcc in the windres
19 directory, with the same prefix as windres */