Skip to content

Commit

Permalink
More OS X build changes
Browse files Browse the repository at this point in the history
Also it fixes previus "OSX build change" commit - new script had wrong permissions
  • Loading branch information
lawrinn committed Jun 9, 2020
1 parent 7b9033e commit 5efdf68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ ELSE()
ADD_LIBRARY(${LIBRARY_NAME} SHARED ${MARIADB_ODBC_SOURCES} maodbcu.rc)

IF(APPLE)
SET(MAODBC_INSTALL_RPATH "${ODBC_LIB_DIR}" "/usr/local/opt/libiodbc" "/usr/local/iODBC/lib")
SET(MAODBC_INSTALL_RPATH "${ODBC_LIB_DIR}" "./" "/usr/local/opt/libiodbc" "/usr/local/iODBC/lib" "/usr/local/opt/openssl@1.1/lib" "/usr/local/opt/libressl/lib")
SET_TARGET_PROPERTIES(${LIBRARY_NAME}
PROPERTIES LINK_FLAGS "-Wl"
INSTALL_RPATH_USE_LINK_PATH 0
Expand Down
7 changes: 7 additions & 0 deletions osxpostbuild.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,10 @@ echo $1
LinkedLibName=`otool -L $1 | grep -i iodbcinst | sed 's/ //' | sed 's/ [(].*$//'`
echo $LinkedLibName
install_name_tool -change $LinkedLibName @rpath/libiodbcinst.dylib $1
LinkedLibName=`otool -L $1 | grep -i libssl | sed 's/ //' | sed 's/ [(].*$//'`
echo $LinkedLibName
install_name_tool -change $LinkedLibName @rpath/libssl.1.1.dylib $1
LinkedLibName=`otool -L $1 | grep -i libcrypto | sed 's/ //' | sed 's/ [(].*$//'`
echo $LinkedLibName
install_name_tool -change $LinkedLibName @rpath/libcrypto.1.1.dylib $1

0 comments on commit 5efdf68

Please sign in to comment.