This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Default options


Hi, Buddy:

You will get it by changing your GCC specification file. It usually is /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs, which depends on distribution. Anyway, edit the 'specs' file: changing 'i386' to what you need. 

Happy Hacking!

Yu Xuanwei

----- Original Message ----- 
From: Richard Browne <richb@pobox.com.au>
To: <gcc@gcc.gnu.org>
Sent: Saturday, January 06, 2001 7:58 PM
Subject: Default options


> Is it possible to tell gcc what options to use by default - once it is
> installed. For example, I want all programs I compile to use the
> -march-i686 option, so I have the most optimised code running on my
> machine. Obviously I could edit every makefile for each package I
> install, but that's unworkable.
> 
> Is there an environment variable and/or (preferrably) a configuration
> file somewhere?
> 
> I've tried to read the gcc manual. There is some talk of machine
> configuration .md and .h files, but these seem to be part of building
> and installing gcc itself. My Unix distro already has a pre-built gcc
> and I don't want to have to try and re-bootstrap  the compiler. I just
> want to tell it to optimise for Pentium by default.
> 
> Is there a way?
> 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]