[Slackbuilds-users] Regarding "make V=1" in the autotools template
Duncan Roe
duncan_roe at optusnet.com.au
Fri Aug 7 07:06:19 UTC 2026
On Fri, Aug 07, 2026 at 01:27:49AM -0400, B. Watson wrote:
>
>
> On Fri, 7 Aug 2026, Duncan Roe wrote:
>
> > Hi,
> >
> > Can I suggest a simplification? Instead of the proposed:-
> >
> > | # If the compile fails and you're using MAKEFLAGS=-j<n>, try adding
> > | # -j1 to the make command:
> > | #make -j1 V=1
> >
> > put something like:-
> >
> > | # To aid debugging of possible compile failures,
> > | #make || make -j1 V=1
> > | # This can be left in.
>
> Ought to be:
>
> make V=1 || make -j1 V=1
>
> ...the point being, we always want to see the compile commands. Not
> just if the compile fails, but always. It lets us catch things like,
> ignoring our SLKCFLAGS, or overriding them (we put "-O2 -fPIC", but
> the Makefile adds a -O3 after our flags, whoops).
>
> I'm not sure how others feel about the "make || make -j1" thing. I
> know PV's SlackBuilds do it. I've never tested it so I don't know if
> it always works or not...
If you get compiler errors (say when upgrading) then it's definitely much easier
to find the error message with -j1.
I don't bother with MAKEFLAGS, just run `make -j$(($(nproc)+1))". (Automated
edit, will be small part of a new SB I hope to submit later this year).
Cheers .... Duncan.
More information about the SlackBuilds-users
mailing list