poco: Fall back to serial build if parallel build fails

Should fix #544.
This commit is contained in:
Timothy Gu 2014-10-21 09:00:49 -07:00
parent c4eb5cb0ce
commit 1468634428
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ define $(PKG)_BUILD
$(if $(BUILD_STATIC), \
$(SED) -i 's:// #define POCO_STATIC:#define POCO_STATIC:' \
'$(1)/Foundation/include/Poco/Config.h')
$(MAKE) -C '$(1)' -j '$(JOBS)' install CROSSENV=$(TARGET)
$(MAKE) -C '$(1)' -j '$(JOBS)' CROSSENV=$(TARGET) || $(MAKE) -C '$(1)' -j 1 CROSSENV=$(TARGET)
$(MAKE) -C '$(1)' -j 1 install CROSSENV=$(TARGET)
'$(TARGET)-g++' \
-W -Wall -Werror -ansi -pedantic -DPOCO_STATIC=1 \