pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/zip only make the gcc target if we're using ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fa346e29e59f
branches:  trunk
changeset: 473226:fa346e29e59f
user:      grant <grant%pkgsrc.org@localhost>
date:      Sat Apr 17 19:24:37 2004 +0000

description:
only make the gcc target if we're using gcc.

diffstat:

 archivers/zip/Makefile |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 1f51410fbac3 -r fa346e29e59f archivers/zip/Makefile
--- a/archivers/zip/Makefile    Sat Apr 17 19:21:09 2004 +0000
+++ b/archivers/zip/Makefile    Sat Apr 17 19:24:37 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.36 2004/03/23 04:41:00 jlam Exp $
+# $NetBSD: Makefile,v 1.37 2004/04/17 19:24:37 grant Exp $
 # FreeBSD Id: Makefile,v 1.10 1997/04/27 16:06:15 ache Exp
 #
 
@@ -25,10 +25,13 @@
 CFLAGS=                -O0
 .endif
 
-.if ${OPSYS} == "SunOS"
+.include "../../mk/compiler.mk"
+
+.if !empty(CC_VERSION:Mgcc*)
 ALL_TARGET=    generic_gcc
 .else
 ALL_TARGET=    generic
+CFLAGS=                -O
 .endif
 
 .if ${OPSYS} == "Linux"



Home | Main Index | Thread Index | Old Index