Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2006 23:43:40 +0000
From:      Shaun Amott <shaun@FreeBSD.org>
To:        Ed Schouten <ed@fxq.nl>
Cc:        ports@freebsd.org
Subject:   Re: How to properly check for GCC 4.1 in port
Message-ID:  <20061218234339.GA31019@charon.picobyte.net>
In-Reply-To: <20061218212213.GU1072@hoeg.nl>
References:  <20061218212213.GU1072@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help

--/04w6evG8XlLl3ft
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Dec 18, 2006 at 10:22:13PM +0100, Ed Schouten wrote:
>=20
> I'm the maintainer for the net/totd port. This port doesn't compile with
> GCC 4.1. The easiest fix is to add -Wno-pointer-sign to the CFLAGS. GCC
> 3.4 doesn't allow this option. What's the nicest way to add a
> conditional to the port Makefile to check for a GCC version?
>=20

Wait until OSVERSION is bumped (i.e. after gcc 4.x is imported) and use
that. There is no variable that tells you the gcc version, as far as I
know.

Alternatively, find a better fix. :-)

--=20
Shaun Amott // PGP: 0x6B387A9A
"A foolish consistency is the hobgoblin
of little minds." - Ralph Waldo Emerson

--/04w6evG8XlLl3ft
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)

iD8DBQFFhyerkmhdCGs4epoRApRtAJ9/0h633a0fEekz0fjh1HP+xMMSBQCgp73N
e/L6leelkNGWyQExdImu+Qw=
=dAee
-----END PGP SIGNATURE-----

--/04w6evG8XlLl3ft--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061218234339.GA31019>