specify default options for gcc

Diego Novillo dnovillo@google.com
Mon Apr 13 21:19:00 GMT 2009

On Mon, Apr 13, 2009 at 16:04, kamaraju kusumanchi
<raju.mailinglists@gmail.com> wrote:
> I want to use the option -Bdirpath whenever I use gcc, g++, gfortran
> etc., Is there any configuration file (preferably at the user level)
> that I can edit so that whenever gcc is invoked it is invoked as "gcc
> -Bdirpath" instead of just gcc?

Write a wrapper shell script that calls gcc with all the default
options you want.  GCC does not support options in configuration files
by design.


More information about the Gcc-help mailing list