diff options
Diffstat (limited to 'archivers/bzip2/Makefile')
-rw-r--r-- | archivers/bzip2/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/archivers/bzip2/Makefile b/archivers/bzip2/Makefile index 0561a2d7a60..d224d50e9ef 100644 --- a/archivers/bzip2/Makefile +++ b/archivers/bzip2/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2002/10/31 22:08:15 grant Exp $ +# $NetBSD: Makefile,v 1.21 2003/03/18 21:53:29 jschauma Exp $ # DISTNAME= bzip2-1.0.2 @@ -13,6 +13,16 @@ USE_BUILDLINK2= # defined USE_LIBTOOL= # defined MAKE_ENV+= REALCC="${BUILDLINK_CC}" +.include "../../mk/bsd.prefs.mk" + +CCVERS!= ${CC} -v 2>&1 | ${GREP} "gcc" || ${ECHO} "notgcc" + +.if ${CCVERS} != "notgcc" +BZIP_CFLAGS= -Wall -Winline -fomit-frame-pointer -fno-strength-reduce +.endif + +MAKE_ENV+= BZIP_CFLAGS="${BZIP_CFLAGS}" + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/bzip2 ${PREFIX}/bin ${LN} -f ${PREFIX}/bin/bzip2 ${PREFIX}/bin/bunzip2 |