On Wed, Nov 4, 2009 at 7:34 AM, Jack Howarth <[email protected]>wrote:
> Keep in mind that not all source packages support
> a parallel make. If I recall correctly, openmotif for
> example has issues. It would be better to encourage
> package maintainers to simply enable the parallel
> make in their info files by using something like...
>
> num_cpu=$(echo `sysctl -n hw.ncpu`)
> make -j $num_cpu
>
Automatically using every CPU as a default behavior is fine (I'm adding
something similar at work for installers we distribute), but it's obnoxious
to be unable to override this, and that code snippet has this problem. It
isn't at all clear to me where the instruction is coming from in the current
setup - I looked at the code in /sw/lib/perl5/Fink and the only lines that
call 'make' do so either with '-j1' or no extra flags, and I didn't see
anything else setting MAKEFLAGS. So are individual packages doing this
already, or has GNU make changed to parallelize automatically, or am I
missing something? Any mechanism for setting the max. # of CPUs is fine -
config file, command-line argument, environment variable - would be
acceptable.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users