summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Pek <tehnick-8@yandex.ru>2016-05-04 16:08:06 (GMT)
committerBoris Pek <tehnick-8@yandex.ru>2016-05-04 16:16:28 (GMT)
commit0f813cdff46324946674f0802dcd2061ce2eee61 (patch)
tree178df51029d779cad35b51dfb362b64f78b75cb4
parentf593aef0b212fea2a79a804ba6cda01daf4c6445 (diff)
downloadmxe-0f813cdff46324946674f0802dcd2061ce2eee61.zip
mxe-0f813cdff46324946674f0802dcd2061ce2eee61.tar.gz
mxe-0f813cdff46324946674f0802dcd2061ce2eee61.tar.bz2
Makefile: simplify work with patches
Fix annoying "different line endings" problem of patch tool. https://stackoverflow.com/questions/2076688/how-to-use-patches-created-in-windows-with-crlf-in-linuxi
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3f846bf..8ea8e0c 100644
--- a/Makefile
+++ b/Makefile
@@ -199,7 +199,7 @@ define PREPARE_PKG_SOURCE
cd '$(2)' && $(call UNPACK_PKG_ARCHIVE,$(1))
cd '$(2)/$($(1)_SUBDIR)'
$(foreach PKG_PATCH,$(PKG_PATCHES),
- (cd '$(2)/$($(1)_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH))
+ (cd '$(2)/$($(1)_SUBDIR)' && $(PATCH) -p1 -u --binary) < $(PKG_PATCH))
endef
PKG_CHECKSUM = \