This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: specify default options for gcc


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]