Subject: Re: -ffast-math and packages
To: David <abs@mono.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: tech-pkg
Date: 05/23/2003 13:42:18
--gSSGYPGSs0dvYOj7
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Fri, May 23, 2003 at 12:38:21PM +0200, Lubomir Sedlacik wrote:
> On Fri, May 23, 2003 at 11:20:05AM +0100, David wrote:
> > I'd like to be able to set my default CFLAGS to include -ffast-math,
> > but there are certain packages where this would be a Bad Thing
> > (postgresql comes to mind).
> >=20
> > Would anyone object to me adding another pkgsrc variable set that
> > can be used to indicate where packages must not be optimised in a
> > certain way (that can then be tested in mk.conf).
> >=20
> > Maybe OPTIMISE_EXCLUDE_FAST_MATH=3Dyes ?
>=20
> why not just use CFLAGS:=3D ${CFLAGS:S/-ffast-math//} ?
btw you can do this without even touching packages themselves, just set
a variable in your mk.conf containing category/pkgdir of all packages
you want to exclude, and do the necessary magick. e.g.,
CFLAGS+=3D-ffast-math
PKG_EXCLUDE_FAST_MATH=3D databases/postgresql \
anothercategory/somethingelse \
othercategory/anotherpackage
_CURPKG=3D ${.CURDIR:H:T}/${.CURDIR:T}
.if !empty(PKG_EXCLUDE_FAST_MATH:M${_CURPKG})
CFLAGS:=3D ${CFLAGS:S/-ffast-math//}
.endif
HTH,
regards,
--=20
-- Lubomir Sedlacik <salo@Xtrmntr.org> --
-- <salo@silcnet.org> --
--gSSGYPGSs0dvYOj7
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (NetBSD)
iD8DBQE+zgkaiwjDDlS8cmMRAuZ7AJsGQy7ET2sG+cdy2ZXvHbU/ZNJ2fgCggiDk
R9WmMQl2riL3BkRafu2gVMw=
=XfJ9
-----END PGP SIGNATURE-----
--gSSGYPGSs0dvYOj7--