Skip to content
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

rosbag_storage: use find_library for abs path of crypto and gpgme libraries #1867

Merged
merged 2 commits into from
Feb 3, 2020

Conversation

dodsonmg
Copy link
Contributor

On FreeBSD, /usr/local/lib is not in the default search path for the linker.

This results in the error ld: cannot find -lgpgme when building rosbag_storage, though libgpgme.so is present in /usr/local/lib.

The existing code sets AES_ENCRYPT_LIBRARIES to contain the library names (crypto and gpgme) and relies on the linker to find them.

This PR uses the find_library function to append /usr/local/lib to the default linker search path and set AES_ENCRYPT_LIBRARIES to the absolute paths of the crypto and gpgme libraries.

This is related to issue #1866.

@dirk-thomas
Copy link
Member

Thanks for the patch.

@dirk-thomas dirk-thomas merged commit 01276c8 into ros:melodic-devel Feb 3, 2020
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