Subject: Re: test for gcc3 ?
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 04/27/2004 23:52:22
--4oF+6Ged69J0+4/e
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Mar 20, 2004 at 05:10:36PM +0100, Manuel Bouyer wrote:

> > .include "../../mk/compiler.mk"
> > .if (${OPSYS} =3D=3D "SunOS") && !empty(CC_VERSION:gcc-3.*)
>=20
> With
> .if (${OPSYS} =3D=3D "SunOS") && !empty(CC_VERSION:Mgcc-3.*)
> if works :)
> thanks

a slightly cleaner way to achieve this is eg.

	.include "../../mk/compiler.mk"
	.if !empty(CC_VERSION:Mgcc-3*)
	CFLAGS.SunOS+=3D	...
	.endif

grant.


--4oF+6Ged69J0+4/e
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAjmWWluYOb9yiFXoRAkMiAJ9c+LPkO/YaiottNEs2mHeZvvq/LACeOP1N
OAVzxSADxDiHUaeqEWCR4DA=
=tPxm
-----END PGP SIGNATURE-----

--4oF+6Ged69J0+4/e--