--- 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;