at master 19 lines 653 B view raw
1diff --git a/binutils/resrc.c b/binutils/resrc.c 2index 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, 6 7 cpp_pipe = 0; 8 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+ } 15+ 16+ if (dash && ! cpp_pipe) 17 { 18 /* First, try looking for a prefixed gcc in the windres 19 directory, with the same prefix as windres */