global optimize flags

Elan Ruusamäe glen at delfi.ee
Thu Apr 21 10:23:25 CEST 2005


On Thursday 21 April 2005 10:57, Jakub Bogusz wrote:
> On Thu, Apr 21, 2005 at 09:46:56AM +0300, Elan Ruusamäe wrote:
> > hi
> >
> > what's the most appropriate way to setup my build environment with custom
> > CFLAGS?
> >
> > i suppose i add to ~/.rpmmacros a macro. but what should it be?
> > rpmcflags? optflags? specflags_ia32?
>
> %optflags for normal builds, %debugcflags for debug builds.
i should be copying for that whole %optflags line
from /usr/lib/rpm/ARCH/macros otherwise the specflags* things will be lost?

$ grep specflags i686-linux/macros
%optflags               -O2 -march=i686%{!?nospecflags:%{?specflags: %{specflags}}%{?specflags_ia32: %{specflags_ia32}}%{?specflags_i686: %{specflags_i686}}}


> specflags* are meant for overrides in individual .specs.

-- 
glen




More information about the pld-devel-en mailing list