This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Default options
- To: gcc at gcc dot gnu dot org
- Subject: Default options
- From: Richard Browne <richb at pobox dot com dot au>
- Date: Sat, 06 Jan 2001 22:58:51 +1100
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?