mirror of https://github.com/pyodide/pyodide.git
PKG Configure zlib, not patch (#849)
The #include <unistd.h> line is added in zconf.h, which is generated by configure.
This commit is contained in:
parent
dd616b5265
commit
e8cc4e8835
|
@ -72,10 +72,10 @@ $(BUILD)/.patched: $(TARBALL)
|
|||
touch $@
|
||||
|
||||
|
||||
$(ZLIBBUILD)/.patched: $(ZLIBTARBALL)
|
||||
$(ZLIBBUILD)/.configured: $(ZLIBTARBALL)
|
||||
[ -d $(ROOT)/build ] || (mkdir $(ROOT)/build)
|
||||
tar -C $(ROOT)/build/ -xf $(ROOT)/downloads/zlib-1.2.11.tar.gz
|
||||
cat patches/zlib/*.patch | (cd $(ZLIBBUILD) ; patch -p1)
|
||||
cd $(ZLIBBUILD); emconfigure ./configure
|
||||
touch $@
|
||||
|
||||
|
||||
|
@ -98,7 +98,7 @@ $(BZIP2BUILD)/libbz2.a: $(BZIP2TARBALL)
|
|||
)
|
||||
|
||||
|
||||
$(BUILD)/Makefile: $(BUILD)/.patched $(ZLIBBUILD)/.patched $(SQLITEBUILD)/libsqlite3.la $(BZIP2BUILD)/libbz2.a
|
||||
$(BUILD)/Makefile: $(BUILD)/.patched $(ZLIBBUILD)/.configured $(SQLITEBUILD)/libsqlite3.la $(BZIP2BUILD)/libbz2.a
|
||||
cp config.site $(BUILD)/
|
||||
( \
|
||||
cd $(BUILD); \
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
diff -u zlib-1.2.11-orig/gzguts.h zlib-1.2.11/gzguts.h
|
||||
--- a/gzguts.h
|
||||
+++ b/gzguts.h
|
||||
@@ -3,6 +3,8 @@
|
||||
* For conditions of distribution and use, see copyright notice in zlib.h
|
||||
*/
|
||||
|
||||
+#include <unistd.h>
|
||||
+
|
||||
#ifdef _LARGEFILE64_SOURCE
|
||||
# ifndef _LARGEFILE_SOURCE
|
||||
# define _LARGEFILE_SOURCE 1
|
Loading…
Reference in New Issue