Developer Guide and Reference

Contents

gnu-prefix

Lets you specify a prefix that will be added to the names of gnu utilities called from the compiler.

Syntax

Linux:
-gnu-prefix
=
prefix
macOS:
None
Windows:
None
Arguments
prefix
Is a string that prepends the name of gnu tools called from the compiler. The value depends on the gnu toolchain used for a particular operating system. For example, for Wind River* Linux 6.x, the
prefix
value will be
x86_64-wrs-linux-
. You must append a hyphen to
prefix
only if the toolchain prefix ends with a hyphen.
You can specify a short name or a pathname:
  • short name:
    -gnu-prefix
    =
    prefix
    In this case, the compiler calls
    prefix<gnu_utility>
    instead of
    <gnu_utility>
    . The utility with this name should be in the PATH environment variable.
  • pathname:
    -gnu-prefix
    =
    /directory_name/
    prefix
    In this case, the compiler calls
    /directory_name/
    prefix<gnu_utility>
    . The utility with this name will be invoked by its full pathname.
Default
OFF
The compiler calls gnu utilities by their short names, and looks for them in the path specified by the PATH environment variable.
Description
This option lets you specify a prefix that will be added to the names of gnu utilities called from the compiler. This option is available for Linux*-targeted compilers but the host may be either Windows* or Linux*.
If you specify option
-gnu-prefix
with option
-gcc-name
(or
-gxx-name
), the following occurs: