summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2010-02-11 08:17:28 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2010-02-11 08:17:28 (GMT)
commit0557ac94e60517c7280b5d3c41fbcea07188c6df (patch)
treef22124548ddf89f65fa5d057cca75dd81902463d
parentedef5d26c1f33dd6dadaec60989b19b15c9c7f18 (diff)
downloadmxe-0557ac94e60517c7280b5d3c41fbcea07188c6df.zip
mxe-0557ac94e60517c7280b5d3c41fbcea07188c6df.tar.gz
mxe-0557ac94e60517c7280b5d3c41fbcea07188c6df.tar.bz2
use explicitly "patch -u" to avoid warnings about guessing the patch type
-rw-r--r--Makefile2
-rw-r--r--src/gcc.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 0527b76..d81e6e6 100644
--- a/Makefile
+++ b/Makefile
@@ -140,7 +140,7 @@ build-only-$(1):
cd '$(2)' && $(call UNPACK_PKG_ARCHIVE,$(1))
cd '$(2)/$($(1)_SUBDIR)'
$(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/$(1)-*.patch)),
- (cd '$(2)/$($(1)_SUBDIR)' && patch -p1) < $(PKG_PATCH))
+ (cd '$(2)/$($(1)_SUBDIR)' && patch -p1 -u) < $(PKG_PATCH))
$$(call $(1)_BUILD,$(2)/$($(1)_SUBDIR),$(TOP_DIR)/src/$(1)-test)
rm -rfv '$(2)'
,)
diff --git a/src/gcc.mk b/src/gcc.mk
index 2bd9f67..854edca 100644
--- a/src/gcc.mk
+++ b/src/gcc.mk
@@ -42,7 +42,7 @@ define $(PKG)_BUILD
cd '$(1)' && \
for p in '$(1)'/gcc-tdm/*.patch; do \
$(SED) 's,\r$$,,' -i "$$p" || exit 1; \
- patch -p1 < "$$p" || exit 1; \
+ patch -p1 -u < "$$p" || exit 1; \
done
# unpack support libraries
cd '$(1)' && $(call UNPACK_PKG_ARCHIVE,gcc-gmp)