Multilib/Eclasses

The multilib projects maintains a few eclasses to help developers integrating multilib support in their projects. While the use of any eclass is not technically necessary, it is convenient and provides flexibility in adding new ABIs.

multilib.eclass
The is not a part of the gx86-multilib eclass suite. It predates the initiative, and provides two kinds of functions:


 * 1) Common functions to improve support for multilib systems, e.g. the   function.
 * 2) Functions to help building packages for multiple ABIs implicitly.

The first category is used commonly by multilib and non-multilib ebuilds. If a multilib ebuild uses one of those functions, it needs to explicitly inherit multilib.

The second category is deprecated and must not be used in new multilib packages.

Eclass listing
The suite consists of the following eclasses:

Eclass choice algorithm
When choosing the correct eclass to use, the following algorithm can be used:


 * 1) If the ebuild uses cmake-utils, cmake-multilib should be used.
 * 2) If building for multilib ABIs is done and none of the aforementioned conditions apply, multilib-minimal should be used.
 * 3) multilib-build should be used only in special cases. For example, virtuals since they do not need any phase functions.