tech-pkg archive

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

Re: How to prevent -O2 in CFLAGS?



Hi,

On Thu, 09 Feb 2012 19:43:36 +0900, Grégoire Sutre 
<gregoire.sutre%gmail.com@localhost> wrote:

I'm trying to update a pkgsrc-wip package, but the new source fails to
build within pkgsrc (direct ./configure && gmake works fine).  It turns
out that this is due to CFLAGS containing `-O2' when the package is
configured via pkgsrc:

/usr/bin/env [...] CC=gcc 'CFLAGS=-O2 -pipe -I/usr/pkg/include [...]'
/bin/sh './configure' [...]

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.

For examples, see devel/bison/hacks.mk.
I believe that it is some environment (OS and/or compiler version) specific 
issue.

--
OBATA Akio / obache%NetBSD.org@localhost


Home | Main Index | Thread Index | Old Index