Skip to content

Commit

Permalink
Makefile: when requesting shared libraries, do the same for DBCSR
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-zero committed May 13, 2019
1 parent cd16989 commit 017bd1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ ifeq ($(NVCC),)
EXE_NAMES := $(basename $(notdir $(filter-out %.cu, $(ALL_EXE_FILES))))
endif
ifneq ($(LD_SHARED),)
ARCHIVE_EXT := .$(ONEVERSION).so
ARCHIVE_EXT := .so
else
ARCHIVE_EXT := .a
endif
Expand Down
2 changes: 1 addition & 1 deletion exts/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $(error "No DBCSR submodule available, please run 'git submodule update --init -
endif

LIBS := -L$(LIBEXTSDIR)/dbcsr -ldbcsr $(LIBS)
EXTSDEPS_LIB = $(LIBEXTSDIR)/dbcsr/libdbcsr.a
EXTSDEPS_LIB = $(LIBEXTSDIR)/dbcsr/libdbcsr.$(ARCHIVE_EXT)
EXTSDEPS_MOD = $(OBJEXTSDIR)/dbcsr/dbcsr_api.mod $(OBJEXTSDIR)/dbcsr/dbcsr_tensor_api.mod
$(EXTSDEPS_MOD) : ; # override builtin .mod rule to prevent circular dependency

Expand Down

0 comments on commit 017bd1f

Please sign in to comment.