Skip to content

Commit

Permalink
Adjusted linkage.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Oct 2, 2024
1 parent 22c7ec6 commit 193866d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion config/cp2k/Linux-x86-64-intelx.arch
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ FPE ?= 0
IPO ?= 0
VMAX ?= 0
STATIC ?= 1
DYNAMIC ?= 1
BLAS_STATIC ?= $(STATIC)
MKL_DIRECT ?= 0
BEEP ?= 0
Expand Down Expand Up @@ -589,7 +590,6 @@ OPT1 := $(shell echo "$$((1<$(OPT)?1:$(OPT)))")
OPT2 := $(shell echo "$$((2<$(OPT)?2:$(OPT)))")

ifneq (0,$(SYM))
LDFLAGS += -Wl,--export-dynamic
ifeq (0,$(GNU))
ifneq (0,$(shell echo "$$((3 > $(OPT)))"))
DFLAGS += $(if $(filter-out 0,$(LEGACY)),__USE_CP2K_TRACE)
Expand All @@ -603,6 +603,10 @@ ifneq (0,$(OMP))
OPTFLAGS += $(if $(filter-out 0,$(INTEL)),-qopenmp,-fopenmp)
endif

ifneq (0,$(DYNAMIC))
LDFLAGS += -Wl,--export-dynamic
endif

ifeq (0,$(LEGACY))
IFLAGS += $(CP2KHOME)/$(OBJDIRNAME)/$(ARCH)/$(ONEVERSION)/exts/dbcsr
ELPA ?= 1
Expand Down

0 comments on commit 193866d

Please sign in to comment.