This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: specify default options for gcc
- From: Diego Novillo <dnovillo at google dot com>
- To: kamaraju kusumanchi <raju dot mailinglists at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 13 Apr 2009 17:19:25 -0400
- Subject: Re: specify default options for gcc
- References: <1d9315cf0904131304h570e96acv8e68dfaa68d4838c@mail.gmail.com>
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.
Diego.