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: GCC Initialization File?


On Mon, 20 Dec 2010, Jeffrey Walton wrote:

Does GCC have an initialization file that can be used to force all
users into particular settings?

I'm interested in always using -Wall -Wextra as compile options, and I
don't want others removing the options. So a make file is out of the
question. I hope GCC will have something similar to an INI file (in
/usr/share?), but search results have been heavily polluted with
"function initialization" results.

http://gcc.gnu.org/onlinedocs/gcc/Spec-Files.html


Or rename gcc to gcc.real and write a shell script gcc that calls gcc.real with whatever arguments you want.


-- Marc Glisse


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