Skip to content

Commit

Permalink
Preprend the PIO linker flags so that they come before netcdf, otherw…
Browse files Browse the repository at this point in the history
…ise netcdf missing symbols are added too late
  • Loading branch information
harmenwierenga committed Feb 14, 2025
1 parent 78516a7 commit 375d02c
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 @@ -1737,9 +1737,9 @@ ESMF_CXXCOMPILEPATHSTHIRD += -I$(ESMF_PIO_INCLUDE)
ESMF_F90COMPILEPATHSTHIRD += -I$(ESMF_PIO_INCLUDE)
endif
ifdef ESMF_PIO_LIBS
ESMF_CXXLINKLIBSTHIRD += $(ESMF_PIO_LIBS)
ESMF_CXXLINKLIBSTHIRD := $(addprefix $(ESMF_PIO_LIBS) ,$(ESMF_CXXLINKLIBSTHIRD))
ESMF_CXXLINKRPATHSTHIRD += $(addprefix $(ESMF_CXXRPATHPREFIX),$(subst -L,,$(filter -L%,$(ESMF_PIO_LIBS))))
ESMF_F90LINKLIBSTHIRD += $(ESMF_PIO_LIBS)
ESMF_F90LINKLIBSTHIRD := $(addprefix $(ESMF_PIO_LIBS) ,$(ESMF_F90LINKLIBSTHIRD))
ESMF_F90LINKRPATHSTHIRD += $(addprefix $(ESMF_F90RPATHPREFIX),$(subst -L,,$(filter -L%,$(ESMF_PIO_LIBS))))
endif
ifdef ESMF_PIO_LIBPATH
Expand Down

0 comments on commit 375d02c

Please sign in to comment.