From owner-freebsd-ports@FreeBSD.ORG Tue Sep 7 17:09:37 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11FBC16A4CE for ; Tue, 7 Sep 2004 17:09:37 +0000 (GMT) Received: from graf.pompo.net (graf.pompo.net [81.56.186.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 691FD43D41 for ; Tue, 7 Sep 2004 17:09:36 +0000 (GMT) (envelope-from thierry@pompo.net) Received: by graf.pompo.net (Postfix, from userid 1001) id DC49C762C; Tue, 7 Sep 2004 19:09:21 +0200 (CEST) Date: Tue, 7 Sep 2004 19:09:21 +0200 From: Thierry Thomas To: John Polstra Message-ID: <20040907170921.GA85835@graf.pompo.net> Mail-Followup-To: John Polstra , ports@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="a8Wt8u1KmwUX3Y2C" Content-Disposition: inline In-Reply-To: X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 4.10-STABLE i386 Organization: Kabbale Eros X-PGP: 0xC71405A2 cc: ports@freebsd.org Subject: Re: Best way to override user's CFLAGS in a port? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2004 17:09:37 -0000 --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 =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--