Skip to content

Commit

Permalink
FMI2 Cpp: add rpath to solver libs
Browse files Browse the repository at this point in the history
This is currently needed for FMUs with algebraic loops, because the solver libs are loaded dynamically at runtime (see also #3264).


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25380 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
rfranke committed Apr 3, 2015
1 parent 25a53cd commit d152f3f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/Template/CodegenFMUCpp.tpl
Expand Up @@ -709,7 +709,8 @@ case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__), simula
ALGLOOPSMAINFILE=OMCpp<%fileNamePrefix%>AlgLoopMain.cpp

OMCPP_LIBS= -lOMCppSystem_FMU -lOMCppDataExchange_static -lOMCppOMCFactory -lOMCppMath_static
LIBS= $(OMCPP_LIBS) $(BASE_LIB) $(BOOST_LIBRARIES) $(LINUX_LIB_DL)
OMCPP_SOLVER_LIBS= -Wl,-rpath,$(OMHOME)/lib/omc/cpp
LIBS= $(OMCPP_LIBS) $(OMCPP_SOLVER_LIBS) $(BASE_LIB) $(BOOST_LIBRARIES) $(LINUX_LIB_DL)

CPPFILES=OMCpp<%fileNamePrefix%>.cpp OMCpp<%fileNamePrefix%>FMU.cpp $(CALCHELPERMAINFILE) $(CALCHELPERMAINFILE2) $(CALCHELPERMAINFILE3) $(CALCHELPERMAINFILE4) $(CALCHELPERMAINFILE5) $(ALGLOOPSMAINFILE)
OFILES=$(CPPFILES:.cpp=.o)
Expand Down

0 comments on commit d152f3f

Please sign in to comment.