Mercurial > mxe-octave
diff src/build-gcc.mk @ 3872:d7b2bb282421
mingw-w64: patch mingw-w64 for %g bug
* dist-files.mk: add mingw-w64-3-fix-g-format.patch
* src/mingw-w64-3-fix-g-format.patch: new file
* src/build-gcc.mk: apply patches to mingw-w64 before building crt
author | John Donoghue |
---|---|
date | Mon, 06 Apr 2015 11:30:00 -0400 |
parents | d27f20f2b0f6 |
children | ee802fc5dd9b |
line wrap: on
line diff
--- a/src/build-gcc.mk Tue Mar 31 08:13:26 2015 -0400 +++ b/src/build-gcc.mk Mon Apr 06 11:30:00 2015 -0400 @@ -59,6 +59,10 @@ # build mingw-w64-crt cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,mingw-w64,$(TAR)) + $(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/mingw-w64-*.patch)), + (cd '$(1)/$(mingw-w64_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH)) + $(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/$(MXE_SYSTEM)-mingw-w64-*.patch)), + (cd '$(1)/$(mingw-w64_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH)) mkdir '$(1).crt-build' cd '$(1).crt-build' && '$(1)/$(mingw-w64_SUBDIR)/mingw-w64-crt/configure' \ --host='$(TARGET)' \