Add conditionals around ar calls for optional modules

The macOS ar aborts when it gets called with no input, see #1398
This commit is contained in:
Martin Kroeker
2017-12-21 20:42:30 +01:00
committed by GitHub
parent 599de9e598
commit 374260027d

View File

@@ -2457,9 +2457,15 @@ all: ../../$(LAPACKELIB)
../../$(LAPACKELIB): $(OBJ_A) $(OBJ_B) $(DEPRECATED) $(EXTENDED) $(MATGEN)
$(ARCH) $(ARCHFLAGS) $@ $(OBJ_A)
$(ARCH) $(ARCHFLAGS) $@ $(OBJ_B)
ifdef BUILD_DEPRECATED
$(ARCH) $(ARCHFLAGS) $@ $(DEPRECATED)
endif
ifdef (USEXBLAS)
$(ARCH) $(ARCHFLAGS) $@ $(EXTENDED)
endif
ifdef LAPACKE_WITH_TMG
$(ARCH) $(ARCHFLAGS) $@ $(MATGEN)
endif
$(RANLIB) $@
clean: cleanobj