Skip to content

Commit

Permalink
Symlink the dynamic library instead of messing with soname and instal…
Browse files Browse the repository at this point in the history
…l_name

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18224 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Nov 22, 2013
1 parent 37dfa1d commit deeba58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.common
Expand Up @@ -157,9 +157,9 @@ fmil:
(cd 3rdParty/FMIL/build && test -f Makefile || CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS) -g" CPPFLAGS="$(CPPFLAGS)" $(CMAKE) -D CMAKE_AR:String="$(AR)" -D FMILIB_BUILD_SHARED_LIB:Bool=$(FMILIB_SHARED) "-DFMILIB_FMI_PLATFORM:String=$(MODELICA_SPEC_PLATFORM)" -D FMILIB_BUILD_TESTS:Bool=OFF -D FMILIB_GENERATE_DOXYGEN_DOC:Bool=OFF -DCMAKE_COLOR_MAKEFILE:Bool=OFF -DFMILIB_INSTALL_PREFIX:String=../install .. -G $(CMAKE_TARGET))
test -f 3rdParty/FMIL/build/$(LIBFMILIB) || $(MAKE) -C 3rdParty/FMIL/build
test -d 3rdParty/FMIL/install || $(MAKE) -C 3rdParty/FMIL/build install
test ! -f 3rdParty/FMIL/build/libfmilib_shared$(SHREXT) || cp -p 3rdParty/FMIL/build/libfmilib_shared$(SHREXT) 3rdParty/FMIL/build/libfmilib$(SHREXT)
test "(" ! `uname` = Darwin ")" -o "(" ! -f 3rdParty/FMIL/build/libfmilib_shared$(SHREXT) ")" || install_name_tool -id @rpath/libfmilib$(SHREXT) 3rdParty/FMIL/build/libfmilib$(SHREXT)
cp -pPR 3rdParty/FMIL/build/$(LIBFMILIB) $(builddir_lib)/omc/
test ! -f build/lib/omc/libfmilib_shared$(SHREXT) || ln -sf libfmilib_shared$(SHREXT) build/lib/omc/libfmilib$(SHREXT)
#TODO: Only copy required headers, add them in omc/fmi subfolder, and do not copy c/txt-files
#cp -rp 3rdParty/FMIL/install/include/* $(builddir_inc)

Expand Down
4 changes: 2 additions & 2 deletions configure.in
Expand Up @@ -710,7 +710,7 @@ if test "Darwin" = `uname`; then
LIBSIMULATION=libSimulationRuntimeC.a
LIBRUNTIME=libOpenModelicaRuntimeC.a
LIBFMIRUNTIME=libOpenModelicaFMIRuntimeC.a
LIBFMILIB=libfmilib.dylib
LIBFMILIB=libfmilib_shared.dylib
FMILIB_SHARED=ON
RT_LDFLAGS="$RT_LDFLAGS -liconv -lgc -lexpat $OPENMP"
LINK="cp -fr"
Expand Down Expand Up @@ -747,7 +747,7 @@ else
LIBSIMULATION=libSimulationRuntimeC.a
LIBRUNTIME=libOpenModelicaRuntimeC.so
LIBFMIRUNTIME=libOpenModelicaFMIRuntimeC.so
LIBFMILIB=libfmilib.so
LIBFMILIB=libfmilib_shared.so
FMILIB_SHARED=ON
RT_LDFLAGS="$RT_LDFLAGS -lrt -lgc -lexpat $OPENMP"
LINK="cp -frl"
Expand Down

0 comments on commit deeba58

Please sign in to comment.