-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic linker fixups #4
base: master
Are you sure you want to change the base?
Conversation
* Fix indentation. * Strip trailing whitespace. * Use ' and " consistently. Cosmetic changes only, no functional changes.
For MacOS, we can run install_name_tool as part of the loopback-oracle-build script which creates a tarball including the oracle instant client and our prebuilt binary. |
Apropos nothing, I wonder if this is a bug in the oracle libraries... Changing the call in oracle_bindings.cpp to
|
Add the directory containing libocci to the dynamic linker search path so strong-oracle users don't have to set LD_LIBRARY_PATH at run-time.
Make it harder for dynamic linker errors to slip through by forcing the tests to run with all dynamic symbols resolved.
That means it needs a relative RPATH? I assume it's the same for Linux? |
Yes, we'll have the following module layout: node_modules
|
I've only been able to make this work on Linux so far (see below) and I'm not 100% convinced that linking against a specific .so is a good idea so feedback is welcome.
It only seems to work on OS X when I execute
install_name_tool -id @rpath/libocci.dylib /path/to/libocci.dylib
first, else-Wl,-rpath,<path>
has no effect.../cc @raymondfeng