tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to prevent -O2 in CFLAGS?



On 02/09/2012 02:36 PM, Jeremy C. Reed wrote:
On Thu, 9 Feb 2012, Gr?goire Sutre wrote:

Hopefully this problem will be solved upstream.  But, still, I'd like
to know how to prevent CFLAGS from containing `-O2', and, in general,
how to control the setting of CFLAGS.

Have a look at following for an idea:

pkgsrc/emulators/simh/Makefile:BUILDLINK_TRANSFORM+=       rm:-O2
pkgsrc/net/isic/Makefile:BUILDLINK_TRANSFORM+=     rm:-O[0-9]*

Indeed, that does the trick.  Thanks a lot ! :-)

Grégoire



Home | Main Index | Thread Index | Old Index