tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to prevent -O2 in CFLAGS?
Am 09.02.2012 um 11:43 schrieb Grégoire Sutre:
> Hi,
>
> 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.
>
CFLAGS should be set by pkgsrc. The package itself should not set CFLAGS but
rather should honor the pkgsrc choice. If a package tries to set CFLAGS on its
own, you might need to patch it.
--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz%freenet.de@localhost +49 170 8768585
Home |
Main Index |
Thread Index |
Old Index