Date: Tue, 7 Sep 2004 19:09:21 +0200 From: Thierry Thomas <thierry@pompo.net> To: John Polstra <jdp@polstra.com> Cc: ports@freebsd.org Subject: Re: Best way to override user's CFLAGS in a port? Message-ID: <20040907170921.GA85835@graf.pompo.net> In-Reply-To: <XFMail.20040907092458.jdp@polstra.com> References: <XFMail.20040907092458.jdp@polstra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--a8Wt8u1KmwUX3Y2C Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Le Mar 7 sep 04 =E0 18:24:58 +0200, John Polstra <jdp@polstra.com> =E9crivait=A0: > The ezm3 port has to be built with an optimization level of -O, and > that's not likely to change any time soon. Some users, especially > users of -current where -O2 is officially supported, are getting > burned by that. What is the best way for me to change the ezm3 port's > Makefile so that -O will be used regardless of the user's environment > or /etc/make.conf settings? On the contrary, Aspell needs at least -O. Then I have written: # Does not link without at least -O =2Eif !defined(CFLAGS) || ${CFLAGS:M-O*} =3D=3D "" CFLAGS+=3D -O =2Eendif Regards, --=20 Th. Thomas. --a8Wt8u1KmwUX3Y2C Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBPetBc95pjMcUBaIRAg5CAJ9Xta0+kwVnawBYVRr9FRmbLWc8DACfVtzl SE1QGiDn1AN6LPZa9p9rJpQ= =dyRs -----END PGP SIGNATURE----- --a8Wt8u1KmwUX3Y2C--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040907170921.GA85835>