summaryrefslogtreecommitdiff
path: root/package/zip/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-10-22 18:26:51 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-10-22 18:26:51 +0200
commit2b52e67da00817f93884a344a9a8b7e2c585fc8c (patch)
treecaa9c494197016efa62412c2483e36f011b2d392 /package/zip/patches
parente8f74f7222ddc977bf775e31101980b9311b7200 (diff)
parent48b18373159b70caca3f41643804c549552d66f4 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/zip/patches')
-rw-r--r--package/zip/patches/patch-unix_Makefile33
-rw-r--r--package/zip/patches/patch-unix_Makefile.orig29
2 files changed, 62 insertions, 0 deletions
diff --git a/package/zip/patches/patch-unix_Makefile b/package/zip/patches/patch-unix_Makefile
new file mode 100644
index 000000000..426f6869e
--- /dev/null
+++ b/package/zip/patches/patch-unix_Makefile
@@ -0,0 +1,33 @@
+--- zip30.orig/unix/Makefile 2008-05-07 08:33:56.000000000 +0200
++++ zip30/unix/Makefile 2011-10-19 22:21:08.000000000 +0200
+@@ -22,7 +22,7 @@ SHELL = /bin/sh
+ LN = ln -s
+
+ # (to use the GNU compiler, change cc to gcc in CC)
+-CC = cc
++CC ?= cc
+ BIND = $(CC)
+ AS = $(CC) -c
+ CPP = /lib/cpp
+@@ -58,7 +58,7 @@ IZ_OUR_BZIP2_DIR = bzip2
+ # LFLAGS1 flags after output file spec, before obj file list
+ # LFLAGS2 flags after obj file list (libraries, etc)
+ CFLAGS_NOOPT = -I. -DUNIX $(LOCAL_ZIP)
+-CFLAGS = -O2 $(CFLAGS_NOOPT)
++CFLAGS ?= -O2 $(CFLAGS_NOOPT)
+ LFLAGS1 =
+ LFLAGS2 = -s
+
+@@ -199,10 +199,10 @@ flags: unix/configure
+ # Generic targets:
+
+ generic: flags
+- eval $(MAKE) $(MAKEF) zips `cat flags`
++ eval $(MAKE) $(MAKEF) zips `cat flags` CC=$(CC)
+
+ generic_gcc:
+- $(MAKE) $(MAKEF) generic CC=gcc CPP="gcc -E"
++ $(MAKE) $(MAKEF) generic CPP="gcc -E" CC=$(CC)
+
+ # AT&T 6300 PLUS (don't know yet how to allocate 64K bytes):
+ att6300nodir:
diff --git a/package/zip/patches/patch-unix_Makefile.orig b/package/zip/patches/patch-unix_Makefile.orig
new file mode 100644
index 000000000..ff185d2d8
--- /dev/null
+++ b/package/zip/patches/patch-unix_Makefile.orig
@@ -0,0 +1,29 @@
+--- zip30.orig/unix/Makefile 2008-05-07 08:33:56.000000000 +0200
++++ zip30/unix/Makefile 2011-10-19 22:20:07.000000000 +0200
+@@ -22,7 +22,7 @@ SHELL = /bin/sh
+ LN = ln -s
+
+ # (to use the GNU compiler, change cc to gcc in CC)
+-CC = cc
++CC ?= cc
+ BIND = $(CC)
+ AS = $(CC) -c
+ CPP = /lib/cpp
+@@ -58,7 +58,7 @@ IZ_OUR_BZIP2_DIR = bzip2
+ # LFLAGS1 flags after output file spec, before obj file list
+ # LFLAGS2 flags after obj file list (libraries, etc)
+ CFLAGS_NOOPT = -I. -DUNIX $(LOCAL_ZIP)
+-CFLAGS = -O2 $(CFLAGS_NOOPT)
++CFLAGS ?= -O2 $(CFLAGS_NOOPT)
+ LFLAGS1 =
+ LFLAGS2 = -s
+
+@@ -202,7 +202,7 @@ generic: flags
+ eval $(MAKE) $(MAKEF) zips `cat flags`
+
+ generic_gcc:
+- $(MAKE) $(MAKEF) generic CC=gcc CPP="gcc -E"
++ $(MAKE) $(MAKEF) generic CPP="gcc -E" CC=$(CC)
+
+ # AT&T 6300 PLUS (don't know yet how to allocate 64K bytes):
+ att6300nodir: