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

Ensure GFlags is compiled with -fPIC #1169

Merged

Conversation

lucyllewy
Copy link
Contributor

GFlags compiled on Ubuntu 18.04 is not linkable by other projects due to
missing -fPIC during compilation.

  • Add -DCMAKE_POSITION_INDEPENDENT_CODE=ON when compiling GFlags.

Signed-off-by: Daniel Llewellyn daniel@snapcraft.ninja

GFlags compiled on Ubuntu 18.04 is not linkable by other projects due to
missing `-fPIC` during compilation.

* Add `-DCMAKE_POSITION_INDEPENDENT_CODE=ON` when compiling GFlags.

Signed-off-by: Daniel Llewellyn <daniel@snapcraft.ninja>
@pierotofy pierotofy merged commit 9b9ecea into OpenDroneMap:master Oct 15, 2020
@pierotofy
Copy link
Member

Thanks!

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.

None yet

2 participants