1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/archivers/unzip/files/patch-aa
Andrey A. Chernov d2c74b6734 Upgrade to 6.0
PR:             139971
2009-10-26 13:27:24 +00:00

29 lines
973 B
Plaintext

--- unix/Makefile.orig 2009-01-19 01:41:18.000000000 +0300
+++ unix/Makefile 2009-10-26 13:15:47.000000000 +0300
@@ -42,12 +42,12 @@
# 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
+#CFLAGS = -O
CF_NOOPT = -I. -I$(IZ_BZIP2) -DUNIX $(LOC)
CF = $(CFLAGS) $(CF_NOOPT)
LFLAGS1 =
@@ -763,8 +763,8 @@
# FreeBSD on Intel:
freebsd: unix_make
@echo 'NOTE: use bsd target for non-Intel FreeBSD compiles (if any).'
- $(MAKE) unzips CC=gcc LD=gcc AS=gcc\
- CFLAGS="-O3 -Wall -DASM_CRC -DBSD"\
+ $(MAKE) unzips CC="$(CC)" LD="$(CC)" AS="$(CC)"\
+ CF="$(CF) -Wall -DASM_CRC -DBSD"\
AF="-Di386 $(AF)" CRCA_O=crc_gcc$O
# Generic BSDish Unix gcc. ``The -O3 only works with later versions of gcc;