Commands implicitly threaded in Makefiles ?
Posted
by apple92
on Stack Overflow
See other posts from Stack Overflow
or by apple92
Published on 2010-06-16T13:59:41Z
Indexed on
2010/06/16
14:02 UTC
Read the original article
Hit count: 165
Hi,
I have a "super" makefile which launches two "sub" make file:
libwebcam: @echo -e "\nInvoking libwebcam make." $(MAKE) -C $(TOPDIR)/libwebcam
uvcdynctrl: @echo -e "\nInvoking uvcdynctrl make." $(MAKE) -C $(TOPDIR)/uvcdynctrl
uvcdynctrl uses libwebcam... I noticed that those two builds are launched as separate threads by make ! Thus sometimes the lib is not available when uvcdynctrl starts being built, and I get errors. By default, make should not launch commands as threads since this is available only through -j (number of jobs) and, according to the make manual, there is no thread by default. I run this on an Ubuntu.
Did someone face the same issue ?
Apple92
© Stack Overflow or respective owner