Skip to content

Commit

Permalink
Fix linking shared libs on mac os
Browse files Browse the repository at this point in the history
Belonging to [master]:
  - OpenModelica/OMCompiler#3040
  • Loading branch information
AnHeuermann authored and OpenModelica-Hudson committed Apr 4, 2019
1 parent 9cb23bc commit b694f3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile.omsi.common
Expand Up @@ -76,7 +76,12 @@ OMSIBaseMSVC: getMSVCversion
OMSIBaseInstall: OMSIBase
cd SimulationRuntime/OMSI; \
$(foreach PLATFORM, $(PLATFORMS), \
(cd Build_$(PLATFORM); $(MAKE) install);)
(cd Build_$(PLATFORM); $(MAKE) install; \
test ! `uname` = Darwin || install_name_tool -id @rpath/OMSI/Build_dynamic/base/libOMSIBase.dylib $(OMBUILDDIR)/$(LIB_OMC)/omsi/libOMSIBase.dylib; \
test ! `uname` = Darwin || install_name_tool -id @rpath/OMSI/Build_dynamic/solver/libOMSISolver.dylib $(OMBUILDDIR)/$(LIB_OMC)/omsi/libOMSISolver.dylib; \
test ! `uname` = Darwin || install_name_tool -change libsundials_nvecserial.0.dylib @rpath/OMSI/Build_dynamic/solver/libOMSISolver.dylib $(OMBUILDDIR)/$(LIB_OMC)/omsi/libOMSISolver.dylib; \
test ! `uname` = Darwin || install_name_tool -change libsundials_kinsol.1.dylib @rpath/OMSI/Build_dynamic/solver/libOMSISolver.dylib $(OMBUILDDIR)/$(LIB_OMC)/omsi/libOMSISolver.dylib); \
)

OMSIBaseClean:
cd SimulationRuntime/OMSI; \
Expand Down

0 comments on commit b694f3f

Please sign in to comment.