global optimize flags

Tomasz Pala gotar at polanet.pl
Thu Apr 21 19:46:41 CEST 2005


On Thu, Apr 21, 2005 at 09:46:56 +0300, Elan Ruusamäe wrote:

> what's the most appropriate way to setup my build environment with custom 
> CFLAGS?

rpmrc:

optflags: athlon -O2 -march=athlon -pipe -s -z combreloc -DNDEBUG -DG_DISABLE_ASSERT -fomit-frame-pointer -fforce-addr -ffast-math %{!?nospecflags:%{?specflags:%{specflags}}%{?specflags_ia32: %{specflags_ia32}}%{?specflags_athlon: %{specflags_athlon}}}

rpmmacros:

%rpmldflags     %{!?debug:-s -z combreloc}

> and perhaps i want just compile for pentium3. how do i configure my rpm build 
> all packages for p3? (rpmbuild --target is not the option i'm searching for)

rpmrc:
buildarchtranslate: pentium3: pentium3

-- 
GoTaR <priv0.onet.pl->gotar>        http://vfmg.sourceforge.net/
                                    http://tccs.sourceforge.net/




More information about the pld-devel-en mailing list