Skip to content

Ensure .so install name & filename match on OSX (fixes #1144)#1457

Merged
arunsrinivasan merged 1 commit intoRdatatable:masterfrom
chenghlee:fix-1144
Dec 1, 2015
Merged

Ensure .so install name & filename match on OSX (fixes #1144)#1457
arunsrinivasan merged 1 commit intoRdatatable:masterfrom
chenghlee:fix-1144

Conversation

@chenghlee
Copy link
Copy Markdown
Contributor

OS X convention requires that the basename part of a shared library's
install name (i.e., install name minus directory components) match the
actual filename of said shared library. Otherwise, the dynamic linker
(and related tools) could get confused when trying to find, process,
and/or load the dynamic library.

On OS X, the "mv" command at the end of the build process changes the
shared library filename to "datatable.so" while leaving the install name
as "data.table.so", so we need to run install_name_tool(1) to fix the
install name to match the filename. Currently not a big issue for most
users (since not much else links to this shared library), but not doing
this causes issues with build systems (e.g., conda) that end up
modifying the .so's RPATH for some reason.

OS X convention requires that the basename part of a shared library's
install name (i.e., install name minus directory components) match the
actual filename of said shared library. Otherwise, the dynamic linker
(and related tools) could get confused when trying to find, process,
and/or load the dynamic library.

On OS X, the "mv" command at the end of the build process changes the
shared library filename to "datatable.so" while leaving the install name
as "data.table.so", so we need to run install_name_tool(1) to fix the
install name to match the filename. Currently not a big issue for most
users (since not much else links to this shared library), but not doing
this causes issues with build systems (e.g., conda) that end up
modifying the .so's RPATH for some reason.
arunsrinivasan added a commit that referenced this pull request Dec 1, 2015
Ensure .so install name & filename match on OSX (fixes #1144)
@arunsrinivasan arunsrinivasan merged commit 5227e80 into Rdatatable:master Dec 1, 2015
@arunsrinivasan
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants