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

_______________________________________________
pld-devel-en mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-devel-en

Reply via email to