Setting the GCC ELF-compatible compiler version to use

You can control the GNU Compiler Collection (GCC) version to use by setting a variable in the maketpf configuration file.

Before you begin

Your administrator must have customized the tpftools/include_ztpf_user/maketpf_rules_cfg_GNU file to support more than one version of the GCC compiler.

Procedure

  1. In the maketpf configuration file (maketpf.cfg), define the compiler to use by setting the MAKETPF_COMPILER variable to GNU (MAKETPF_COMPILER := GNU).
    GNU is the default.
  2. Define the compiler version to use by setting the TPFGCC_VERSION variable.
    For example, TPFGCC_VERSION := 7. The default is determined by querying the version that is found in the PATH environment variable.