From owner-freebsd-ports@FreeBSD.ORG Wed Sep 8 00:26:21 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 8AF6B16A4CE for ; Wed, 8 Sep 2004 00:26:21 +0000 (GMT) Received: from dns10.mail.yahoo.co.jp (dns10.mail.yahoo.co.jp [210.81.151.143]) by mx1.FreeBSD.org (Postfix) with SMTP id 7FFE543D4C for ; Wed, 8 Sep 2004 00:26:20 +0000 (GMT) (envelope-from ayakokiko@ybb.ne.jp) Received: from unknown (HELO gorgon.near.this) (219.11.234.11 with poptime) by dns10.mail.yahoo.co.jp with SMTP; 8 Sep 2004 00:26:19 -0000 X-Apparently-From: Received: from hydra.near.this (hydra.near.this [10.0.3.20]) by gorgon.near.this (Postfix) with ESMTP id E76CA7F24 for ; Wed, 8 Sep 2004 09:26:12 +0900 (JST) Received: by hydra.near.this (Postfix, from userid 100) id 8216C9839; Wed, 8 Sep 2004 09:26:12 +0900 (JST) Date: Wed, 8 Sep 2004 09:26:11 +0900 From: horio shoichi To: freebsd-ports@freebsd.org In-Reply-To: References: X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20040908.002612.fd32f07a73827483.10.0.3.20@bugsgrief.net> 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: Wed, 08 Sep 2004 00:26:21 -0000 On Tue, 07 Sep 2004 09:24:58 -0700 (PDT) John Polstra wrote: > 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? > > Thanks, > John > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > This is on 4.9-STABLE. man gcc says: If you use multiple -O options, with or without level numbers, the last such option is the one that is effective. So, CFLAGS += -O would work. horio shoichi