urbit/nix/nixcrpkgs/mingw-w64/gcc/mingw-search-paths.patch
benjamin-tlon edd57d380d
Finish cc-release cross-compilation. (#1202)
- Fixes the IPC bug
- Fixes the terminfo bug
- Moves the OSX SDK out of our nixcrpkgs fork.
- Vendor nixcrpkgs instead of having it be a submodule.
2019-04-23 19:50:38 -07:00

15 lines
458 B
Diff

Make it so GCC does not force us to have a "mingw" symlink.
--- gcc-6.3.0-orig/gcc/config/i386/mingw32.h
+++ gcc-6.3.0/gcc/config/i386/mingw32.h
@@ -163,3 +163,3 @@
#ifndef STANDARD_STARTFILE_PREFIX_1
-#define STANDARD_STARTFILE_PREFIX_1 "/mingw/lib/"
+#define STANDARD_STARTFILE_PREFIX_1 "/lib/"
#endif
@@ -172,3 +172,3 @@
#undef NATIVE_SYSTEM_HEADER_DIR
-#define NATIVE_SYSTEM_HEADER_DIR "/mingw/include"
+#define NATIVE_SYSTEM_HEADER_DIR "/include"