Tailoring a configuration file

The default configuration file is installed in /usr/lpp/cbclib/xlc/etc/xlc.cfg.

You can copy this file and make changes to the copy to support specific compilation requirements or to support other C or C++ compilation environments. The -F option is used to specify a configuration file other than the default. For example, to make -qnoro the default for the xlC compiler invocation command, add -qnoro to the xlC stanza in your copied version of the configuration file.

You can link the compiler invocation command to several different names. The name you specify when you invoke the compiler determines which stanza of the configuration file the compiler uses. You can add other stanzas to your copy of the configuration file to customize your own compilation environment.

Only one stanza, in addition to the one referenced by the "use" attribute, is processed for any one invocation of the xlc utility. By default, the stanza that matches the command name used to invoke the xlc utility is used, but it can be overridden using the -F flag option as described in the example below.

Example: You can use the -F option with the compiler invocation command to make links to select additional stanzas or to specify a stanza or another configuration file:
xlC myfile.C -Fmyconfig:SPECIAL

would compile myfile.C using the SPECIAL stanza in a myconfig configuration file that you had created.