Using custom compiler configuration files

The XL Fortran compiler generates a default configuration file /opt/IBM/xlf/15.1.0/etc/xlf.cfg.nn at installation time, where nn indicates which OS version the configuration file is for. 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: