Branch: refs/heads/remove_rpath Home: https://github.com/kronosnet/kronosnet Commit: a9e09bf2682a1fb026fd44e8db4049da7cf7d900 https://github.com/kronosnet/kronosnet/commit/a9e09bf2682a1fb026fd44e8db4049... Author: Christine Caulfield ccaulfie@redhat.com Date: 2021-04-19 (Mon, 19 Apr 2021)
Changed paths: M libknet/Makefile.am M libknet/common.c M libknet/handle.c M libknet/internals.h M libknet/tests/Makefile.am M libknet/tests/test-common.c
Log Message: ----------- [lib] Don't use -rpath
rpath seems to annoy some analysis tool, and I can understand why. We use it to locate the crypto & compression plugins but libknet also needs to use the plugins from the build-tree when running tests.
A simple way to do this is have the plugin directory as part of the knet handle then we can override it in the test suite, which already does 'illegal' accesses to some handle fields.
OK, it's not the MOST elegant way of doing this perhaps, but it is nice and simple and effective.