Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit fa5744f

Browse files
Undefined reference to `solve_core' (#430)
* Fixing missing dependency in the makefile target * enginemch.o is needed before creation of shared/static library libcorenrnmech created
1 parent 554294a commit fa5744f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extra/nrnivmodl_core_makefile.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,14 @@ enginemech_object:
174174
$(CXX_COMPILE_CMD) -c -DADDITIONAL_MECHS $(CORENRN_SHARE_CORENRN_DIR)/enginemech.cpp -o $(ENGINEMECH_OBJ)
175175

176176
# build shared library of mechanisms
177-
coremech_lib_shared: $(ALL_OBJS) build_always
177+
coremech_lib_shared: $(ALL_OBJS) enginemech_object build_always
178178
$(CXX_SHARED_LIB_CMD) $(ENGINEMECH_OBJ) -o ${COREMECH_LIB_PATH} $(ALL_OBJS) \
179179
-I$(CORENRN_INC_DIR) $(INCFLAGS) \
180180
$(LDFLAGS) $(CORENRN_LIB_DIR)/libscopmath.a \
181181
${SONAME_OPTION} $(CORENRNLIB_FLAGS) -Wl,-rpath,$(CORENRN_LIB_DIR);
182182

183183
# build static library of mechanisms
184-
coremech_lib_static: $(ALL_OBJS) build_always
184+
coremech_lib_static: $(ALL_OBJS) enginemech_object build_always
185185
mkdir -p $(MOD_OBJS_DIR)/scopmath; \
186186
cd $(MOD_OBJS_DIR)/scopmath && ar -x $(CORENRN_LIB_DIR)/libscopmath.a && cd -;\
187187
rm -f ${COREMECH_LIB_PATH}; \

0 commit comments

Comments
 (0)