Use "+=" for MAKE_FLAGS instead of "=". Properly quote LOCAL_ZIP and

LFLAGS1.
This commit is contained in:
rillig 2005-10-23 20:55:14 +00:00
parent edba5dcec4
commit 540b30a1d6

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.46 2005/10/23 18:07:10 rillig Exp $
# $NetBSD: Makefile,v 1.47 2005/10/23 20:55:14 rillig Exp $
DISTNAME= zip231
PKGNAME= zip-2.31
@ -16,11 +16,12 @@ COMMENT= Create/update ZIP files compatible with pkzip
PKG_INSTALLATION_TYPES= overwrite pkgviews
MAKEFILE= unix/Makefile
MAKE_FLAGS= LOCAL_ZIP="${CFLAGS}" LFLAGS1="${_STRIPFLAG_CC}"
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
.include "../../mk/bsd.prefs.mk"
MAKE_FLAGS+= LOCAL_ZIP=${CFLAGS:Q}
MAKE_FLAGS+= LFLAGS1=${_STRIPFLAG_CC:Q}
.if ${OPSYS} == "NetBSD" && ${MACHINE_ARCH} == "powerpc"
CFLAGS+= -O0
.endif