diff options
author | grant <grant> | 2004-01-12 11:44:47 +0000 |
---|---|---|
committer | grant <grant> | 2004-01-12 11:44:47 +0000 |
commit | 2c6ad7714c009ec162d3350bcad5fc07d0bd1ce1 (patch) | |
tree | e10b160cca9e6dd0b6303fe7dede26befb9dfb91 /www | |
parent | ce23c9af6e8d5efad2dc5d3aaa63bc4632a33895 (diff) | |
download | pkgsrc-2c6ad7714c009ec162d3350bcad5fc07d0bd1ce1.tar.gz |
only use COPTS?=-O2 if we're using gcc, otherwise use COPTS?=-O. gives
mozilla packages a chance of building with non-gcc compilers.
Diffstat (limited to 'www')
-rw-r--r-- | www/mozilla/Makefile.common | 6 |
1 files changed, 5 insertions, 1 deletions
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 |