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

Re: The wonderful world of GTK (rant)



On Tue, 24 Apr 2001, Yosi wrote:

> >Why not simply:
> >
> >   rpm -ta  gtk+-1.2.10.tar.gz
> >
> >or even only:
> >
> >   rpm -tb gtk+-1.2.10.tar.gz
> >
> >(don't produce a source rpm at all)
> 
> But I do want the src.rpm . I then change the spec file so the package
> will be compiled with the flags and configuration options I want to.
> >From my experience, using the appropriate optimization flags for your
> cpu (Athlon in my case) can result in a drastic performance increase.
> For example, compiling Lame with special optimization flags yielded
> an encoder which was almost 50% than the stock encoder.
> However, you are right, that if you do not require any special options
> in the package, just create the binary, as you suggested.

I don't know about redhat, but Mandrake are usually quite pedantic about
making sure RPM_OPT_FLAGS are used as optimization flags at build time.
And then all you have to do is set the approriate 
  %optflags

macro in your rpmmacros file (if it is not set automatically to a decent
value)

-- 
Tzafrir Cohen
mailto:tzafrir@technion.ac.il
http://www.technion.ac.il/~tzafrir


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il