From 45b5efe0e619f9269ac2d84a534ce487eacccb84 Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 9 Feb 2004 03:26:39 +0000 Subject: CC_VERSION is "gcc-2.8.1" for egcs. Also fix up a few nits: not all compilers understand "-O" to optimize, and if we only care about gcc, then wrap the block in an ifdef that is triggered only if we're using gcc. --- editors/lyx-qt/Makefile.common | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'editors/lyx-qt') diff --git a/editors/lyx-qt/Makefile.common b/editors/lyx-qt/Makefile.common index 6b8295efaf3..2b19758d778 100644 --- a/editors/lyx-qt/Makefile.common +++ b/editors/lyx-qt/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.12 2004/02/01 01:43:29 jlam Exp $ +# $NetBSD: Makefile.common,v 1.13 2004/02/09 03:26:39 jlam Exp $ # DISTNAME= lyx-1.3.3 @@ -39,20 +39,22 @@ CONFIGURE_ARGS+= --with-pspell-lib=${BUILDLINK_PREFIX.aspell}/lib \ .include "../../mk/bsd.prefs.mk" # XXX these values are taken from the LyX configure script -.if defined(CC_VERSION) -. if !empty(CC_VERSION:Mgcc-2.95.1) -CXXFLAGS+= -fpermissive -ftemplate-depth-30 +.if !empty(CC_VERSION:Mgcc-*) +. if !empty(CC_VERSION:Mgcc-2.8*) +CXXFLAGS+= # empty +. elif !empty(CC_VERSION:Mgcc-2.95.1) +CXXFLAGS+= -fpermissive -ftemplate-depth-30 . elif !empty(CC_VERSION:Mgcc-2.95.*) -CXXFLAGS+= -Wno-non-template-friend -ftemplate-depth-30 +CXXFLAGS+= -Wno-non-template-friend -ftemplate-depth-30 . elif !empty(CC_VERSION:Mgcc-2.96*) # some Linux distros -CXXFLAGS+= -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend +CXXFLAGS+= -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend . elif !empty(CC_VERSION:Mgcc-3.0*) -# no op +CXXFLAGS+= # empty . elif !empty(CC_VERSION:Mgcc-3.1*) -CXXFLAGS+= -finline-limit=500 -fno-exceptions +CXXFLAGS+= -finline-limit=500 -fno-exceptions . else # >= 3.2 -CXXFLAGS+= -fno-exceptions +CXXFLAGS+= -fno-exceptions . endif .endif -- cgit v1.2.3