HEADS UP multi processor compilations for everyone

Dmitry Marakasov amdmi3 at amdmi3.ru
Wed Mar 25 09:32:03 PDT 2009


* Pav Lucistnik (pav at FreeBSD.org) wrote:

> > > This would break very fast -- it's passing -j3 to port Makefile instead
> > > of vendor Makefile.
> > 
> > This has worked fine for me for countless years, except where the
> > vendor's Makefiles were not parallel-safe. This has been my trick to get
> > larger things (like mysql or xorg-server) to make in parallel. It *did*
> > work. If this has changed, then it definitely warrants mention in
> > UPDATING.
> 
> Then it must have worked all these years by pure chance :)

Be the way, could anyone clarify how this works? My idea was that
passing -j to port Makefile does nothing, as make/gmake on vendor's
Makefile is ran without any -j flags -> you get usual singlethreaded
build. However, I have a broken port, which uses gmake and something
like that:

sometarget:
  (cd xxx; make)

and that fails with -j (make: illegal option -- -). So is there
some magic with recursive make calls and -j?

-- 
Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
amdmi3 at amdmi3.ru  ..:  jabber: amdmi3 at jabber.ru    http://www.amdmi3.ru


More information about the freebsd-ports mailing list