Skip to content

Commit 183dd26

Browse files
committed
Remove setting of ESMF_SL_PRELOAD_LIBLINKER for Darwin openmpi
This breaks the build on my Mac because it uses a Fortran linker when it should be using a C++ linker: the flags are set up for a C++ linker, and using a Fortran linker means that we're not picking up the necessary C++ libraries (at least, I think that's the issue).
1 parent 958ec50 commit 183dd26

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

build/common.mk

-4
Original file line numberDiff line numberDiff line change
@@ -2053,10 +2053,6 @@ ESMF_SL_PRELOAD_LIBLINKER = $(ESMF_CXXCOMPILER)
20532053
ifeq ($(ESMF_OS),Darwin)
20542054
ESMF_ENV_PRELOAD = DYLD_INSERT_LIBRARIES
20552055
ESMF_ENV_PRELOAD_DELIMIT = ':'
2056-
ifeq ($(ESMF_COMM),openmpi)
2057-
# make sure to link in the Fortran MPI bindings
2058-
ESMF_SL_PRELOAD_LIBLINKER = $(ESMF_F90COMPILER)
2059-
endif
20602056
else
20612057
ESMF_ENV_PRELOAD = LD_PRELOAD
20622058
ESMF_ENV_PRELOAD_DELIMIT = ' '

0 commit comments

Comments
 (0)