On Sunday, June 15, 2014 09:08:27 AM Fernando de Oliveira wrote:
> Em 15-06-2014 08:33, Baho Utot escreveu:
> > -j works for all LFS packages
> >
> > MKFLAGS="-j $(getconf _NPROCESSORS_ONLN)"
> >
> > make ${MKFLAGS}
>
> If MKFLAGS is set (I think, normally, in /etc/profile), race problem
> appears, and one likes it to remain like that, just unset or define it
> to be "-j 1", before trying to rebuild the the particular package:
>
> unset MKFLAGS
>
> or
>
> export MKFLAGS="-j 1"
>
> Is the unset part correct? (I used to use MKFLAGS years ago, so, do not
> remember anymore.)
One could use any bash variable.
I could have used :
This-is-my-setting-for-make-to-use-multiple-cores"-j $(getconf
_NPROCESSORS_ONLN)"
make ${This-is-my-setting-for-make-to-use-multiple-cores}
what you are looking for is make -j <some number>
I was daemonstrating a way to fetch the number of cores on the host system and
use that. Rather than "lets see should I use x number or cores on this build
host or y number of cores". The system under build just sets the number with
no fuss. No export needed
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page