Skip to content

Commit

Permalink
Merge pull request #19 from climbfuji/add_nceplibs_to_libgfsphys
Browse files Browse the repository at this point in the history
Add nceplibs to libgfsphys.so to avoid undefined symbols when loading libgfsphys.so dynamically at runtime using dlopen() in CCPP.
  • Loading branch information
climbfuji authored Nov 21, 2017
2 parents 5def3f2 + 896acf7 commit f87010f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ OBJS = $(OBJS_f) $(OBJS_f90) $(OBJS_F) $(OBJS_F90) $(OBJS_c)
all default: depend $(LIBRARY)

$(LIBRARY): $(OBJS)
$(FC) -shared -Wl,-soname,$(LIBRARY).$(VER_MAJOR) $(OBJS) $(LDFLAGS) -o $(LIBRARY).$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
$(FC) -shared -Wl,-soname,$(LIBRARY).$(VER_MAJOR) $(OBJS) $(LDFLAGS) $(NCEPLIBS) -o $(LIBRARY).$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
ln -sf $(LIBRARY).$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH) $(LIBRARY)
ln -sf $(LIBRARY).$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH) $(LIBRARY).$(VER_MAJOR)

Expand Down

0 comments on commit f87010f

Please sign in to comment.