Script Index


/var/lib/sorcery/modules/libgcc

The basic usage is as follows:

- If a spell works with the latest version of gcc, do nothing.
- To change the compiler version for a spell, add a GCC_VERSION field
to the spells DETAILS specifying major.minor version of gcc it needs,
e.g. GCC_VERSION=3.4
- add a 'depends gccXX' to the spell where XX == majorminor,
e.g. 'depends gcc34'
- add 'invoke_gcc' to the top of PRE_BUILD if the spell has a
custom PRE_BUILD file

Implementation

These functions were added to allow the use of several versions of gcc in parallel.

Synopsis

Set of functions for dealing with the problem of having to use different version of the gcc compilers.


function real_using_gcc()

Parameters:

Returns:

Description

to the passed version installed gcc is at least "version"


function gcc_add_paths()

Parameters:

Description

Alters the environment so that the gcc in the specified directory will be used for compiling


function invoke_gcc()

Parameters:

Description

Determines if the spell specifies a gcc version to use. If so, it alters the environment so that that gcc version is used for compilation.