summaryrefslogtreecommitdiff
path: root/package/unzip/patches/patch-unix_Makefile
blob: 842ef5493e715b37f54168cbce90b1ed3b65dda0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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