[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: optflags problem



* Jeff Johnson (jbj@redhat.com) wrote:

> > This gives me back "-O2" as the answer.  What is wrong here?
> 
> Broken (actually never completely implemented) in rpm-4.0.[34].

Is this on the TODO for an upcoming release?

> Use the rpmrc configuration in /etc/rpmrc instead. For example, putting
> 	optflags: i386 -O2 -march=i386 -mcpu=i686 -g
> adds -g debugging. Or just edit /usr/lib/rpm/rpmrc directly,
> not hard.

I'm hesitant to do this because I don't want to mess with the default install,
since I don't want to use the goofy optflags all the time, just when I build
one tree.

What I'm really trying to do is to have the optflags values in
/usr/lib/rpm/%_target/macros show up as the defaults when I
build a package like so:
  
   rpm --rebuild --target foo-redhat-linux bar.src.rpm

but this isn't working either.  Is this part of the same brokenness?  How do I
go about making those optflags be used?

-matt





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []