-
Notifications
You must be signed in to change notification settings - Fork 74
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
Set rpath on Linux and Solaris #2
Comments
@kubo Thanks. Did you test those changes on Solaris yourself? |
Sorry, I have not tested it on Solaris. I wrote it from my memory. As far as I checked, |
I suspect the |
I have rpath on Linux on my list - like we do for node-oracledb. |
Setting RPATH when compiling ODPI-C or a driver like cx_Oracle and node-oracledb won't help due to the fact that there is no RPATH set on libclntsh.so in Oracle Instant Client. If you have a full client, however, ODPI-C now automatically locates and loads the library. |
Okay, thanks! |
Could you set
-Wl,-rpath,$(OCI_LIB_DIR)
toLDFLAGS
on Linux and-R,$(OCI_LIB_DIR)
on Solaris in addition to macOS?If rpath is set, client programs depending on odpi have no need to use LD_LIBRARY_PATH to know the directory containing Oracle client libraries.
The text was updated successfully, but these errors were encountered: