From 2c6ad7714c009ec162d3350bcad5fc07d0bd1ce1 Mon Sep 17 00:00:00 2001 From: grant Date: Mon, 12 Jan 2004 11:44:47 +0000 Subject: only use COPTS?=-O2 if we're using gcc, otherwise use COPTS?=-O. gives mozilla packages a chance of building with non-gcc compilers. --- www/mozilla/Makefile.common | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/mozilla/Makefile.common b/www/mozilla/Makefile.common index 7ee3d0f154d..f0b4e67098e 100644 --- a/www/mozilla/Makefile.common +++ b/www/mozilla/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.24 2003/12/20 16:07:42 grant Exp $ +# $NetBSD: Makefile.common,v 1.25 2004/01/12 11:44:47 grant Exp $ MOZ_DIST_VER?= ${MOZ_VER} DISTNAME?= mozilla-source-${MOZ_DIST_VER} @@ -103,7 +103,11 @@ SCRIPTS_ENV+= SUNOSLIB=${SUNOSLIB} PTHREAD_OPTS+= native optional +.if !empty(CC_VERSION:Mgcc*) COPTS?= -O2 +.else +COPTS?= -O +.endif CONFIGURE_ARGS+= --enable-optimize=${COPTS:Q} XPTCFILES+= xptcinvoke_asm_sparc64_netbsd.s xptcstubs_asm_sparc64_netbsd.s -- cgit v1.2.3