Skip to content

Commit

Permalink
Link in libstdc++ also for dynload since it contains the csv reader
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18268 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 24, 2013
1 parent 464082a commit ddb3c67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ libOpenModelicaRuntimeC.so: $(BASE_OBJS)

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

libOpenModelicaFMIRuntimeC.a: $(FMIOBJSPATH)
@rm -f $@
Expand Down
8 changes: 4 additions & 4 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -776,8 +776,8 @@ if test "Darwin" = `uname`; then
LIBFMIRUNTIME=libOpenModelicaFMIRuntimeC.dylib
LIBFMILIB=libfmilib_shared.dylib
FMILIB_SHARED=ON
RT_LDFLAGS_SIM="$RT_LDFLAGS $SUNDIALS_LDFLAGS $IPOPT_LDFLAGS -linteractive -llis -lstdc++ -lf2c -lexpat -liconv -lgc -lpthread -lm -ldl"
RT_LDFLAGS="$RT_LDFLAGS $LD_LAPACK -liconv -lgc -lpthread -lm -ldl"
RT_LDFLAGS_SIM="$RT_LDFLAGS $SUNDIALS_LDFLAGS $IPOPT_LDFLAGS -linteractive -llis -lf2c -lexpat -liconv -lgc -lpthread -lm -ldl -lstdc++"
RT_LDFLAGS="$RT_LDFLAGS $LD_LAPACK -liconv -lgc -lpthread -lm -ldl -lstdc++"
# All libraries are dynamically linked; we don't need anything else
RT_LDFLAGS_GENERATED_CODE="-lOpenModelicaRuntimeC $LD_LAPACK -lm"
RT_LDFLAGS_GENERATED_CODE_SIM="-lSimulationRuntimeC $LD_LAPACK -lm"
Expand Down Expand Up @@ -822,8 +822,8 @@ else
FMILIB_SHARED=ON
# For static runtime on Linux:
# -Wl,-whole-archive -lSimulationRuntimeC -Wl,-no-whole-archive
RT_LDFLAGS_SIM="$RT_LDFLAGS $SUNDIALS_LDFLAGS $IPOPT_LDFLAGS $LIBRT -linteractive -llis -lstdc++ -Wl,-Bstatic -lf2c -Wl,-Bdynamic -lexpat -lgc $LIBRT -lpthread -lm -ldl"
RT_LDFLAGS="$RT_LDFLAGS $LD_LAPACK -lgc $LIBRT -lpthread -lm -ldl"
RT_LDFLAGS_SIM="$RT_LDFLAGS $SUNDIALS_LDFLAGS $IPOPT_LDFLAGS $LIBRT -linteractive -llis -Wl,-Bstatic -lf2c -Wl,-Bdynamic -lexpat -lgc $LIBRT -lpthread -lm -ldl -lstdc++"
RT_LDFLAGS="$RT_LDFLAGS $LD_LAPACK -lgc $LIBRT -lpthread -lm -ldl -lstdc++"
# All libraries are dynamically linked; we don't need anything else
RT_LDFLAGS_GENERATED_CODE="-lOpenModelicaRuntimeC $LD_LAPACK -lm"
RT_LDFLAGS_GENERATED_CODE_SIM="-lSimulationRuntimeC $LD_LAPACK -lm"
Expand Down

0 comments on commit ddb3c67

Please sign in to comment.