GCC Initialization File?
Jonathan Wakely
jwakely.gcc@gmail.com
Mon Dec 20 22:37:00 GMT 2010
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.
More information about the Gcc-help
mailing list