Replying to myself, I added a line for i686... with a set of optflags.
I messed around a bit and found that using the --target i686 command
did the trick of using my new optflags.  I suppose I could
comment out the i386 line and add one that uses the same optflags
as the i686 line and this would lead to the default flags being
those for the i686 flags.

One more question...I added these as flags:

-O3 -mpentiumpro -fno-strength-reduce -fomit-frame-pointer
-fno-exceptions -fno-rtti -ffast-math -march=i686 -pipe -s
-fexpensive-optimization

but when I ran rpm --rebuild --target i686, the compiler
didn't like the -fexpensive-optimization flag.  I had to
remove it to get things to build.  I get a message that it
is an invalid option.

I am presently using egcs-2.91.66



-----Original Message-----
From: patrick [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 26, 1999 5:14 PM
To: [EMAIL PROTECTED]
Cc: recipient.list.not.shown
Subject: RE: GCC 2.95 ?


Thanks...but I looked at the file and see no obvious means of changing
anything.
I see a loooong list of different opt flags for many different
architectures but
no internal documentation of the file to indicate what to change, what
optflag is
used (like is it the first in the long list of possibilities by
default or do I
make some change somewhere else as well?).

I added some i686-specific optflags to the file where it looked like
it would go
but beyond that, I don't know what to do.  I even commented out the
i386 -m486
line to prevent that from being used, period.  I then went on the
rpm --rebuild
a particular src.rpm and saw nothing of my optflags, so it appears
nothing
has changed.


-----Original Message-----
From: Juha Saarinen [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 26, 1999 3:07 PM
To: patrick; [EMAIL PROTECTED]
Cc: recipient.list.not.shown
Subject: RE: GCC 2.95 ?


>
> I have a question in regards to pentium or higher optimization,
> source, and rpm.  Is there a means to make the default rpm
> --rebuild command use better than -02 -m486, etc?  I would
> like a situation where I enter "rpm --rebuild x.src.rpm" and
> have the optimizations run to -03 -mpentiumpro -march=i686, etc.

Check out /usr/lib/rpm/rpmrc. You should be able to tweak it a bit by
adding
some optflags there.

-- Juha



--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.


--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to