Use correct GCC tread number automatically

Have you ever waited so long for an optional kernel module to compile? Yes?

Then you should add in your linux system following file:

/etc/profile.d/make.sh

The contents are:

export MAKEFLAGS=j4

With this option you tell the compiler to start 4 threads to compile. Please tune this suitable for your system!

Leave a Reply