Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 Sep 2004 19:08:52 +0200
From:      Franz Klammer <klammer@webonaut.com>
To:        John Polstra <jdp@polstra.com>
Cc:        ports@freebsd.org
Subject:   Re: Best way to override user's CFLAGS in a port?
Message-ID:  <413DEB24.8060502@webonaut.com>
In-Reply-To: <XFMail.20040907095250.jdp@polstra.com>
References:  <XFMail.20040907095250.jdp@polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help


John Polstra wrote:
> On 07-Sep-2004 Franz Klammer wrote:
> 
>>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?
>>>
>>
>>you can add something like this to /etc/make.conf to set
>>CFLAGS only for lang/ezm3:
>>
>>.if ${.CURDIR} == "/usr/ports/lang/ezm3"
>>CFLAGS= -O2 -pipe
>>.endif
> 
> 
> Sorry, I didn't explain the problem very well.  I am the port's

no, no ... i didn't read your mail correctly. :-(

> maintainer, and I want to commit a change to the port so that -O
> will be used regardless of what the user has in /etc/make.conf or
> the environment.

what about this?

CFLAGS:=  ${CFLAGS:C/-O./-O/g}

franz.

> 
> John



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?413DEB24.8060502>