Date: Sun, 24 Feb 2002 18:16:45 +0100 (MET) From: Thomas Schuerger <schuerge@wjpserver.CS.Uni-SB.DE> To: freebsd-ports@freebsd.org Subject: Suggestion for make -j x in ports Message-ID: <200202241716.g1OHGje08007@wjpserver.cs.uni-sb.de>
next in thread | raw e-mail | index | archive | help
Hi! I like making ports with the "-j x" option, e.g. "-j 2", for parallel compilation on my dual processor box. However, a number of ports won't compile if using this option. This is very annoying for ports that compile quite a while, because you have to make clean again and have to recompile without the "-j" option. I'd suggest the following: Add a variable to /etc/make.conf containing the desired "-j" parameter, e.g. "PARALLEL_MAKE=number" If a port supports parallel making, it should have an option in the Makefile like "MAKE_PARALLEL=yes". Making the port should look in /etc/make.conf for the number of parallel processes to use and should use "-j x" iff MAKE_PARALLEL is "yes". The default if the option is not present in /etc/make.conf should be 1. It should still be possible to use "make -j x" manually for ports that have not yet been checked if parallel making is supported. Feedback is welcome. Greetings, Thomas. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202241716.g1OHGje08007>