nixpkgs/pkgs/tools/archivers/unzip/dont-hardcode-cc.patch

15 lines
392 B
Diff
Raw Normal View History

2017-06-04 21:50:36 +00:00
--- a/unix/Makefile
+++ b/unix/Makefile
@@ -42,9 +42,9 @@
2017-06-04 21:50:36 +00:00
# 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
2017-06-04 21:50:36 +00:00
LD = $(CC)# must match, else "unresolved symbol: ___main" is possible)
-AS = as
+AS ?= as
2017-06-04 21:50:36 +00:00
LOC = $(D_USE_BZ2) $(LOCAL_UNZIP)
AF = $(LOC)
CFLAGS = -O