summaryrefslogtreecommitdiff
path: root/packages/zlib/1.2.11/0002-mingw-static-only.patch
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-12-02 23:30:38 (GMT)
committerGitHub <noreply@github.com>2017-12-02 23:30:38 (GMT)
commitd917a29865876b913fe2939ee2a0728145e8543a (patch)
tree4e048ed57988306696efa3c5b81a80d48030e913 /packages/zlib/1.2.11/0002-mingw-static-only.patch
parente832b9b220f90b11b893e2815ceb37ec2b708683 (diff)
parent98bc4decdeab1361bdc585c86591718fb08c8ffb (diff)
Merge pull request #874 from stilor/renumber-update-patches
Renumber & update patches
Diffstat (limited to 'packages/zlib/1.2.11/0002-mingw-static-only.patch')
-rw-r--r--packages/zlib/1.2.11/0002-mingw-static-only.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/zlib/1.2.11/0002-mingw-static-only.patch b/packages/zlib/1.2.11/0002-mingw-static-only.patch
new file mode 100644
index 0000000..6d5c89c
--- /dev/null
+++ b/packages/zlib/1.2.11/0002-mingw-static-only.patch
@@ -0,0 +1,28 @@
+---
+ win32/Makefile.gcc | 8 ++++++--
+ 1 file changed, 6 insertions(+), 2 deletions(-)
+
+--- a/win32/Makefile.gcc
++++ b/win32/Makefile.gcc
+@@ -71,7 +71,11 @@
+ gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o
+ OBJA =
+
+-all: $(STATICLIB) $(SHAREDLIB) $(IMPLIB) example.exe minigzip.exe example_d.exe minigzip_d.exe
++all: $(STATICLIB) example.exe minigzip.exe
++
++ifeq ($(SHARED_MODE),1)
++all: $(SHAREDLIB) $(IMPLIB) example_d.exe minigzip_d.exe
++endif
+
+ test: example.exe minigzip.exe
+ ./example
+@@ -125,7 +129,7 @@
+ .PHONY: install uninstall clean
+
+ install: zlib.h zconf.h $(STATICLIB) $(IMPLIB)
+- @if test -z "$(DESTDIR)$(INCLUDE_PATH)" -o -z "$(DESTDIR)$(LIBRARY_PATH)" -o -z "$(DESTDIR)$(BINARY_PATH)"; then \
++ @if test -z "$(INCLUDE_PATH)" -o -z "$(LIBRARY_PATH)" -o -z "$(BINARY_PATH)"; then \
+ echo INCLUDE_PATH, LIBRARY_PATH, and BINARY_PATH must be specified; \
+ exit 1; \
+ fi