ozone icon indicating copy to clipboard operation
ozone copied to clipboard

HDDS-10560. Link rocksdb lib to Ozone rocksdb tools lib relative path instead of absolute path

Open swamirishi opened this issue 11 months ago • 4 comments

What changes were proposed in this pull request?

Currently the native lib load fails since we hardcode the rocksdbjni lib path while linking with the native lib. We need to link it with a relative path.

The patch looks into setting the RPATH for native lib which will link the rocksdblib corresponding to the location of the native lib. I am adding the stack overflow link which might be helpful here for reviewing: https://stackoverflow.com/questions/43330165/how-to-link-a-shared-library-with-cmake-with-relative-path/71321163#71321163

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-10560

How was this patch tested?

Existing Unit test

swamirishi avatar Mar 21 '24 10:03 swamirishi