Using custom compiler configuration files

The XL Fortran compiler generates a default configuration file /opt/ibm/xlf/15.1.0/etc/xlf.cfg.$OSRelease.gcc$gccVersion. For example, /opt/ibm/xlf/15.1.0/etc/xlf.cfg.sles11.gcc432 or /opt/ibm/xlf/15.1.0/etc/xlf.cfg.rhel6.2.gcc446 at installation time. (See the XL Fortran Installation Guide for more information on the various tools you can use to generate the configuration file during installation.) The configuration file specifies information that the compiler uses when you invoke it.

If you are running on a single-user system, or if you already have a compilation environment with compilation scripts or makefiles, you might want to leave the default configuration file as it is.

If you want users to be able to choose among several sets of compiler options, you might want to use custom configuration files for specific needs. For example, you might want to enable -qlist by default for compilations using the xlf compiler invocation command. This is to avoid forcing your users to specify this option on the command line for every compilation, because -qnolist is automatically in effect every time the compiler is called with the xlf command.

You have several options for customizing configuration files:
Related information: