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]

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]