patch-unix_Makefile 983 B

12345678910111213141516171819202122232425262728
  1. --- unzip60.orig/unix/Makefile 2009-01-18 23:41:18.000000000 +0100
  2. +++ unzip60/unix/Makefile 2014-05-27 14:22:34.624111366 +0200
  3. @@ -42,13 +42,13 @@
  4. # such as -DDOSWILD).
  5. # UnZip flags
  6. -CC = cc# try using "gcc" target rather than changing this (CC and LD
  7. +CC ?= cc# try using "gcc" target rather than changing this (CC and LD
  8. LD = $(CC)# must match, else "unresolved symbol: ___main" is possible)
  9. AS = as
  10. LOC = $(D_USE_BZ2) $(LOCAL_UNZIP)
  11. AF = $(LOC)
  12. -CFLAGS = -O
  13. -CF_NOOPT = -I. -I$(IZ_BZIP2) -DUNIX $(LOC)
  14. +CFLAGS ?=
  15. +CF_NOOPT = -I. -I$(IZ_BZIP2) -DUNIX $(CFLAGS)
  16. CF = $(CFLAGS) $(CF_NOOPT)
  17. LFLAGS1 =
  18. LF = -o unzip$E $(LFLAGS1)
  19. @@ -545,7 +545,7 @@ generic: flags # now try autoconfigur
  20. # make $(MAKEF) unzips CF="${CF} `cat flags`"
  21. generic_gcc:
  22. - $(MAKE) $(MAKEF) generic CC=gcc IZ_BZIP2="$(IZ_BZIP2)"
  23. + $(MAKE) $(MAKEF) generic CC=$(CC) IZ_BZIP2="$(IZ_BZIP2)"
  24. # extensions to perform SVR4 package-creation after compilation
  25. generic_pkg: generic svr4package