MAKEOPTS variable content as defined in /etc/portage/make.conf is passed on to the make jobs launched from Portage and is most often used to allow parallel jobs.
The parallel jobs entry ensures that, when make is invoked, it knows how many parallel sessions it is allowed to trigger (when parallel sessions are possible of course). This is completely within the scope of that make command and has no influence on parallel installations (which is triggered through emerge with --jobs=X option). The recommended value is the number of logical processors in the CPU plus 1.
On a system with one i7 CPU the following command shows the numbering of the available logical CPUs.
grep processor /proc/cpuinfo
processor : 0 processor : 1 processor : 2 processor : 3 processor : 4 processor : 5 processor : 6 processor : 7
In this example 8 CPUs are available, hence one can set the
MAKEOPTS variable to:
For example, to measure the time needed to compile the package midnight commander with for 4 threads one can run:
time MAKEOPTS="-j4" emerge app-misc/mc