Multilib/gx86-multilib

This page will use amd64 with the additional 32-bit API for illustration, users of other multilib-enabled arches should adapt the instructions accordingly.

Due to limitations in the older emul-linux-x86-* multilib solution, it is generally troublesome to toggle eclass based multilib on individual packages. Thus, this page currently only describes how to enable it system wide. These difficulties are expected to lessen as more of the packages provided by the emul-linux-x86-* packages are migrated to use eclass based multilib, and other packages are updated to accept the migrated packages in their dependencies.

Enabling per-package
The 32-bit ABI can enabled per package by setting a USE flag:

If the package manager requires dependencies to also include this flag, it will prompt to add them.

System wide implementation
It is not strictly necessary to specify the default (64-bit) ABI since it is force-enabled by 64-bit profiles, but does not hurt to add it:

Note on CFLAGS
For those that enable the 32-bit/64-bit ABI CFLAGS options must NOT include any  options.

This will allow the  to select the compiler options during the configure and make process.