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

Add Support for Static Producer to Shared kvssink Builds #465

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

stefankiesz
Copy link
Contributor

This PR corresponds to the kvssink .so with static linkage to cproducer (#1179) Producer Cpp PR.

What was changed?

  • Allow Producer Cpp builds to pass on the CURL_POSITION_INDEPENDENT_CODE CMake flag to this Producer C library to allow for building a static Curl library with a shared kvssink library.

Why was it changed?

  • Curl does not set CMAKE_POSITION_INDEPENDENT_CODE nor set -fPIC, so this must be set when building it statically to be consumed by a shared library.

How was it changed?

  • Added the passing of the CURL_POSITION_INDEPENDENT_CODE flag from Producer C CMakeLists to Curl CMakeLists to set the CMAKE_POSITION_INDEPENDENT_CODE flag.

What testing was done for the changes?
Tested the kvssink build locally on Ubuntu and added a CI job for it.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Build specific issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant