From d6b42574240231d760c6417b98ddac389636c199 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Mon, 24 Nov 2014 20:26:00 +1100 Subject: libf2c: retry build with single job --- src/libf2c.mk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libf2c.mk b/src/libf2c.mk index 980ef35..cd3ec53 100644 --- a/src/libf2c.mk +++ b/src/libf2c.mk @@ -15,13 +15,17 @@ define $(PKG)_UPDATE echo 1 endef -define $(PKG)_BUILD - $(MAKE) -C '$(1)' -j '$(JOBS)' -f makefile.u \ +$(PKG)_MAKE_OPTS = \ + -f makefile.u \ CC=$(TARGET)-gcc \ AR=$(TARGET)-ar \ LD=$(TARGET)-ld \ RANLIB=$(TARGET)-ranlib \ CFLAGS='-O -DUSE_CLOCK' + +define $(PKG)_BUILD + $(MAKE) -C '$(1)' -j '$(JOBS)' $($(PKG)_MAKE_OPTS) || $(MAKE) -C '$(1)' -j 1 $($(PKG)_MAKE_OPTS) + $(INSTALL) -m644 '$(1)/libf2c.a' '$(PREFIX)/$(TARGET)/lib' $(INSTALL) -m644 '$(1)/f2c.h' '$(PREFIX)/$(TARGET)/include' endef -- cgit v0.12