GCC Initialization File?

Jeffrey Walton noloader@gmail.com
Tue Dec 21 17:43:00 GMT 2010


On Mon, Dec 20, 2010 at 5:37 PM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 20 December 2010 21:18, Marc Glisse wrote:
>> 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
>
> And 'gcc -dumpspecs' will print the default spec file that's built in
> to the compiler, so you can use that as a starting point to modify.
That was a rude awakening. I like the examples given on the Spec-Files
page much better.

Jeff



More information about the Gcc-help mailing list