summaryrefslogtreecommitdiff
path: root/package/unzip/patches/patch-unix_Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-05-27 14:27:45 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-27 14:27:45 +0200
commite750323c87c297897ba2c3d3b307c66286a1168c (patch)
tree4271b9ad1e30643e5259531900799f43f13ea0d9 /package/unzip/patches/patch-unix_Makefile
parent883823056de84e3ee5288ccf39818db887f25f79 (diff)
xbmc checks for unzip/zip
Diffstat (limited to 'package/unzip/patches/patch-unix_Makefile')
-rw-r--r--package/unzip/patches/patch-unix_Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/unzip/patches/patch-unix_Makefile b/package/unzip/patches/patch-unix_Makefile
new file mode 100644
index 000000000..842ef5493
--- /dev/null
+++ b/package/unzip/patches/patch-unix_Makefile
@@ -0,0 +1,28 @@
+--- unzip60.orig/unix/Makefile 2009-01-18 23:41:18.000000000 +0100
++++ unzip60/unix/Makefile 2014-05-27 14:22:34.624111366 +0200
+@@ -42,13 +42,13 @@
+ # such as -DDOSWILD).
+
+ # UnZip flags
+-CC = cc# try using "gcc" target rather than changing this (CC and LD
++CC ?= cc# try using "gcc" target rather than changing this (CC and LD
+ LD = $(CC)# must match, else "unresolved symbol: ___main" is possible)
+ AS = as
+ LOC = $(D_USE_BZ2) $(LOCAL_UNZIP)
+ AF = $(LOC)
+-CFLAGS = -O
+-CF_NOOPT = -I. -I$(IZ_BZIP2) -DUNIX $(LOC)
++CFLAGS ?=
++CF_NOOPT = -I. -I$(IZ_BZIP2) -DUNIX $(CFLAGS)
+ CF = $(CFLAGS) $(CF_NOOPT)
+ LFLAGS1 =
+ LF = -o unzip$E $(LFLAGS1)
+@@ -545,7 +545,7 @@ generic: flags # now try autoconfigur
+ # make $(MAKEF) unzips CF="${CF} `cat flags`"
+
+ generic_gcc:
+- $(MAKE) $(MAKEF) generic CC=gcc IZ_BZIP2="$(IZ_BZIP2)"
++ $(MAKE) $(MAKEF) generic CC=$(CC) IZ_BZIP2="$(IZ_BZIP2)"
+
+ # extensions to perform SVR4 package-creation after compilation
+ generic_pkg: generic svr4package