Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Sep 2004 09:26:11 +0900
From:      horio shoichi <bugsgrief@bugsgrief.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: Best way to override user's CFLAGS in a port?
Message-ID:  <20040908.002612.fd32f07a73827483.10.0.3.20@bugsgrief.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
On Tue, 07 Sep 2004 09:24:58 -0700 (PDT)
John Polstra <jdp@polstra.com> 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



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