Skip to content

Commit

Permalink
Explicitly use compiler variables when setting ESMF_SL_PRELOAD_LIBLINKER
Browse files Browse the repository at this point in the history
to avoid issues on systems that use custom linker settings.
  • Loading branch information
theurich committed Oct 23, 2023
1 parent 1bed7e4 commit 1328e86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2025,11 +2025,11 @@ ESMF_PRELOADSCRIPT = $(ESMF_LIBDIR)/preload.sh
ifeq ($(ESMF_OS),Darwin)
ESMF_ENV_PRELOAD = DYLD_INSERT_LIBRARIES
ESMF_ENV_PRELOAD_DELIMIT = ':'
ESMF_SL_PRELOAD_LIBLINKER = $(ESMF_F90LINKER)
ESMF_SL_PRELOAD_LIBLINKER = $(ESMF_F90COMPILER)
else
ESMF_ENV_PRELOAD = LD_PRELOAD
ESMF_ENV_PRELOAD_DELIMIT = ' '
ESMF_SL_PRELOAD_LIBLINKER = $(ESMF_SL_LIBLINKER)
ESMF_SL_PRELOAD_LIBLINKER = $(ESMF_CXXCOMPILER)
endif

# MPI implementations do not pick up LD_PRELOAD
Expand Down

0 comments on commit 1328e86

Please sign in to comment.