Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 14445  / 2 Years ago, sun, october 9, 2022, 10:16:54

I am trying to make a package of a piece of software that I've (co-) written. I'm using



debuild -i -us -uc -b 


And in principle that works fine. In order to shorten compilation time I'd like to debuild to run make in parallel (like I normally do by running make -j4, for example).
I've found a few locations on the web that suggest the following:



debuild -eDEB_BUILD_OPTIONS="parallel=4" -us -uc -b
debuild -j4 -us -uc -b


Another site suggested to add some code to the debian/rules file that basically sets



MAKEFLAGS += -j4


However, none of these seems to work. Have I missed something? or should I change something in the autoconf/automake settings of the source?


More From » compiling

 Answers
1

It has to be enabled in debian/rules. If the package uses dh, there is a line like this in debian/rules:



dh $@


Change that to



dh $@ --parallel


Then your commands will work, at least DEB_BUILD_OPTIONS="parallel=4"


[#29787] Monday, October 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
initiallartebeest

Total Points: 24
Total Questions: 118
Total Answers: 105

Location: Venezuela
Member since Thu, Jul 15, 2021
3 Years ago
;