Skip to content

Commit

Permalink
Move f2c linking as the Linux dynamic version has unresolved symbols
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18251 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 23, 2013
1 parent c78ce87 commit f22b4df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ libSimulationRuntimeC.so: $(ALL_OBJS)

libSimulationRuntimeC.dylib: $(ALL_OBJS)
@rm -f $@
$(CC) -shared -o $@ $(ALL_OBJS) $(LDFLAGS) -undefined dynamic_lookup -install_name '@rpath/$@'
$(CC) -shared -o $@ $(ALL_OBJS) $(LDFLAGS) -lf2c -undefined dynamic_lookup -install_name '@rpath/$@'

libSimulationRuntimeC.bc: $(ALL_OBJS)
@rm -f $@
Expand Down
2 changes: 1 addition & 1 deletion SimulationRuntime/c/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CXX = @CXX@
CONFIG_CPPFLAGS = @CPPFLAGS@
CONFIG_CFLAGS = @CFLAGS@ @IPOPT_CFLAGS@
FPMATHFORTRAN = @FPMATHFORTRAN@
LDFLAGS=-L$(top_builddir)/build/lib/omc -L../interactive @LDFLAGS@ @RT_LDFLAGS@ @SUNDIALS_LDFLAGS@ @IPOPT_LDFLAGS@ -linteractive -llis -lf2c -lpthread -lstdc++
LDFLAGS=-L$(top_builddir)/build/lib/omc -L../interactive @LDFLAGS@ @RT_LDFLAGS@ @SUNDIALS_LDFLAGS@ @IPOPT_LDFLAGS@ -linteractive -llis -lpthread -lstdc++

LIBMAKEFILE = Makefile
INTERACTIVELIBS = "-lpthread"
Expand Down

0 comments on commit f22b4df

Please sign in to comment.