Skip to content

Commit

Permalink
some fixes for compilation on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
Henning Kiel authored and OpenModelica-Hudson committed Jun 18, 2015
1 parent 7b13279 commit c9cd590
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile.common
Expand Up @@ -224,9 +224,10 @@ CMinpack:
test -f 3rdParty/CMinpack/build/$(LIBCMINPACKLIB) || $(MAKE) -C 3rdParty/CMinpack/build
test ! `uname` = Darwin || install_name_tool -id @rpath/$(LIBCMINPACKLIB) 3rdParty/CMinpack/build/$(LIBCMINPACKLIB)
# copy dll/so to $(LIB_OMC)/ folders
(rm -f $(builddir_lib_omc)/$(LIBCMINPACKLIB)*)
(cp -af 3rdParty/CMinpack/build/$(LIBCMINPACKLIB)* $(builddir_lib_omc))
# Darwin has to be special always
(test ! `uname` = Darwin || cp -af 3rdParty/CMinpack/install/lib*/*.dylib $(builddir_lib_omc))
(test ! `uname` = Darwin || cp -af 3rdParty/CMinpack/build/lib*.dylib $(builddir_lib_omc))

CMinpack-clean:
rm -rf 3rdParty/CMinpack/install
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -640,7 +640,7 @@ if test "$DARWIN" = "1"; then
LINK="cp -fr"
RPATH="-Wl,-rpath,'@loader_path/../lib/$host_short/omc/'"
RPATH_QMAKE="-Wl,-rpath,'@loader_path/../../../../lib/$host_short/omc',-rpath,'@loader_path/../../../../lib/',-rpath,'$PREFIX/lib/$host_short/omc',-rpath,'$PREFIX/lib/'"
MSL_EXTRA_ARGS="--disable-hdf5 --enable-static-zlib --enable-static --disable-shared"
MSL_EXTRA_ARGS="--disable-hdf5 --enable-static-zlib --enable-static --enable-shared"
OS_TARGET="osx"
LIS_LDFLAGS="-Wl,-install_name,@rpath/liblis.dylib"
AR_SH="sh -x ar.sh"
Expand Down

0 comments on commit c9cd590

Please sign in to comment.