This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Default options
- To: "Richard Browne" <richb at pobox dot com dot au>,<gcc at gcc dot gnu dot org>
- Subject: Re: Default options
- From: "Yu Xuanwei" <yxw at chinacluster dot com>
- Date: Mon, 8 Jan 2001 14:19:02 +0800
- References: <3A57087B.71026DDA@pobox.com.au>
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?
>