delay creation of the softlink until after the library has been created
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Mon, 26 Apr 2021 20:32:23 +0000 (22:32 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Apr 2021 20:32:23 +0000 (22:32 +0200)
Makefile

index de0735c..555d1c4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -167,7 +167,6 @@ ifeq ($(NO_SHARED), 1)
        $(error OpenBLAS: neither static nor shared are enabled.)
 endif
 endif
-       @-ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
        @for d in $(SUBDIRS) ; \
        do if test -d $$d; then \
          $(MAKE) -C $$d $(@F) || exit 1 ; \
@@ -196,6 +195,7 @@ endif
 ifdef USE_THREAD
        @echo USE_THREAD=$(USE_THREAD) >>  Makefile.conf_last
 endif
+       @-ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
        @touch lib.grd
 
 prof : prof_blas prof_lapack