Add conditionals around ar calls for optional modules
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Thu, 21 Dec 2017 19:42:30 +0000 (20:42 +0100)
committerGitHub <noreply@github.com>
Thu, 21 Dec 2017 19:42:30 +0000 (20:42 +0100)
The macOS ar aborts when it gets called with no input, see #1398

lapack-netlib/LAPACKE/src/Makefile

index 6009843..44884d4 100644 (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