summaryrefslogtreecommitdiffstats
path: root/src/bzip2.mk
diff options
context:
space:
mode:
authorMartin Lambers <marlam@marlam.de>2013-01-30 17:10:28 (GMT)
committerMartin Lambers <marlam@marlam.de>2013-01-30 17:10:28 (GMT)
commite01b3f7aaeb5a36d03c0dfe294197cad2518478d (patch)
tree8a8f519f714bb1aedcbc20ec8ab5c885ed96cbd4 /src/bzip2.mk
parent695203fdf39470b06d7863a2f7a24131c95933d5 (diff)
downloadmxe-e01b3f7aaeb5a36d03c0dfe294197cad2518478d.zip
mxe-e01b3f7aaeb5a36d03c0dfe294197cad2518478d.tar.gz
mxe-e01b3f7aaeb5a36d03c0dfe294197cad2518478d.tar.bz2
package bzip2: fix runtime crashes
This moves the source modifications from the Makefile into a patch, and it adds a critical change: instead of removing WINAPI, the whole _WIN32 preprocessor block is deactivated. This fixes the BZ_API macro. This is necessary to fix runtime crashes in my application.
Diffstat (limited to 'src/bzip2.mk')
-rw-r--r--src/bzip2.mk2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/bzip2.mk b/src/bzip2.mk
index fa2d073..fe3e859 100644
--- a/src/bzip2.mk
+++ b/src/bzip2.mk
@@ -17,8 +17,6 @@ define $(PKG)_UPDATE
endef
define $(PKG)_BUILD
- $(SED) -i 's,sys\\stat\.h,sys/stat.h,g' '$(1)/bzip2.c'
- $(SED) -i 's,WINAPI,,g' '$(1)/bzlib.h'
$(MAKE) -C '$(1)' -j '$(JOBS)' libbz2.a \
PREFIX='$(PREFIX)/$(TARGET)' \
CC='$(TARGET)-gcc' \