diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-02-23 11:57:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-02-23 11:57:17 +0200 |
commit | afc81e5cb09219770a8a5b8cd2855b45ece0a42a (patch) | |
tree | 66b7db87067ce3190fd95fe831bc72d80c50df89 /binary/mingw/gcc-4.5.1-mingw-cross.patch | |
parent | 8fc1fc844a9695fb0d1d5d3c13393d4709ce7592 (diff) |
Add build scripts for Windows binary
Diffstat (limited to 'binary/mingw/gcc-4.5.1-mingw-cross.patch')
-rw-r--r-- | binary/mingw/gcc-4.5.1-mingw-cross.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/binary/mingw/gcc-4.5.1-mingw-cross.patch b/binary/mingw/gcc-4.5.1-mingw-cross.patch new file mode 100644 index 0000000..d63f04b --- /dev/null +++ b/binary/mingw/gcc-4.5.1-mingw-cross.patch @@ -0,0 +1,46 @@ +diff -ru gcc-4.5.1.orig/gcc/config/i386/mingw32.h gcc-4.5.1/gcc/config/i386/mingw32.h +--- gcc-4.5.1.orig/gcc/config/i386/mingw32.h 2010-04-27 22:14:19.000000000 +0200 ++++ gcc-4.5.1/gcc/config/i386/mingw32.h 2010-09-01 16:56:49.000000000 +0200 +@@ -66,7 +66,7 @@ + /* Override the standard choice of /usr/include as the default prefix + to try when searching for header files. */ + #undef STANDARD_INCLUDE_DIR +-#define STANDARD_INCLUDE_DIR "/mingw/include" ++#define STANDARD_INCLUDE_DIR "/include" + #undef STANDARD_INCLUDE_COMPONENT + #define STANDARD_INCLUDE_COMPONENT "MINGW" + +diff -ru gcc-4.5.1.orig/gcc/config/i386/t-mingw32 gcc-4.5.1/gcc/config/i386/t-mingw32 +--- gcc-4.5.1.orig/gcc/config/i386/t-mingw32 2008-09-04 10:25:25.000000000 +0200 ++++ gcc-4.5.1/gcc/config/i386/t-mingw32 2010-09-01 16:26:49.000000000 +0200 +@@ -1,5 +1,5 @@ + # Match SYSTEM_INCLUDE_DIR +-NATIVE_SYSTEM_HEADER_DIR = /mingw/include ++NATIVE_SYSTEM_HEADER_DIR = /include + + # MinGW-specific parts of LIB_SPEC + SHLIB_LC = -lmingw32 -lmingwex -lmoldname -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 +diff -ru gcc-4.5.1.orig/libstdc++-v3/include/Makefile.am gcc-4.5.1/libstdc++-v3/include/Makefile.am +--- gcc-4.5.1.orig/libstdc++-v3/include/Makefile.am 2010-02-10 21:14:33.000000000 +0200 ++++ gcc-4.5.1/libstdc++-v3/include/Makefile.am 2010-09-02 10:19:37.000000000 +0200 +@@ -893,7 +893,7 @@ + ${pch1_output_builddir} ${pch2_output_builddir} ${pch3_output_builddir} + pch_output_anchors = \ + ${pch1_output_anchor} ${pch2_output_anchor} ${pch3_output_anchor} +-PCHFLAGS=-x c++-header $(CXXFLAGS) ++PCHFLAGS=-nostdinc++ -x c++-header $(CXXFLAGS) + if GLIBCXX_BUILD_PCH + pch_build = ${pch_output} + else +diff -ru gcc-4.5.1.orig/libstdc++-v3/include/Makefile.in gcc-4.5.1/libstdc++-v3/include/Makefile.in +--- gcc-4.5.1.orig/libstdc++-v3/include/Makefile.in 2010-04-02 20:18:06.000000000 +0200 ++++ gcc-4.5.1/libstdc++-v3/include/Makefile.in 2010-09-02 10:26:05.000000000 +0200 +@@ -1119,7 +1119,7 @@ + pch_output_anchors = \ + ${pch1_output_anchor} ${pch2_output_anchor} ${pch3_output_anchor} + +-PCHFLAGS = -x c++-header $(CXXFLAGS) ++PCHFLAGS = -nostdinc++ -x c++-header $(CXXFLAGS) + @GLIBCXX_BUILD_PCH_FALSE@pch_build = + @GLIBCXX_BUILD_PCH_TRUE@pch_build = ${pch_output} + |