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

Re: having my $RPM_OPT_FLAGS and eating it too...



On Sun, Jul 22, 2001 at 11:09:27PM -0400, Matthew Miller wrote:
> I have a game which I'd like to be compiled with -O3. The normal 
> $RPM_OPT_FLAGS seems to use -O2. I'd like my rpm to use $RPM_OPT_FLAGS so it
> can pick up the correct arch flags, etc. Is there a good way to do this
> and to use -O3?

Humm, lemme see:

NEW_OPT=`echo $RPM_OPT_FLAGS | sed 's/ -O2 / -O3 /'`
RPM_OPT_FLAGS="${NEW_OPT_FLAGS}"

yes, thats it ...

[]s

-- 
 Rodrigo Barbosa                   - rodrigob at bh.conectiva.com.br
 Conectiva S/A			   - Belo Horizonte, MG, Brazil
 "Quis custodiet ipsos custodiet?" - http://www.conectiva.com/

Attachment: pgp00010.pgp
Description: PGP signature


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