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

Re: optflags problem



On Thu, May 02, 2002 at 11:08:17AM -0400, Matthew R. MacIntyre wrote:
> * 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?

Yup, been there for going on 3 years now.
> 
> > 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
> 

Look setting CFLAGS appropriately is really pretty simple, people
have been doing it for years without any (ahem) assistance from rpm.

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

Why do you think that optflags has anything to do with rebuilding bar.src.rpm?

73 de Jeff

-- 
Jeff Johnson	ARS N3NPQ
jbj@redhat.com (jbj@jbj.org)
Chapel Hill, NC





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