#1099599 anytun: add support for parallel builds

#1099599#5
Date:
2025-03-05 14:26:39 UTC
From:
To:
Hi,

anytun currently uses only one CPU core when building.

Please consider supporting parallel builds. See Debian Policy 4.9.1 for
details about this:
https://www.debian.org/doc/debian-policy/ch-source.html#debian-rules-and-deb-build-options

The following snippet in d/rules should do the trick:

# Support parallel builds
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NJOBS := -j $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif

And then pass the variable to make, something like: $(MAKE) $(NJOBS)

Thanks!
  Emanuele