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

cmake: allow SHARE_LIB_OBJECT=ON on all platforms #11627

Closed

Conversation

vszakats
Copy link
Member

@vszakats vszakats commented Aug 8, 2023

2ebc74c #11546 introduced sharing
libcurl objects for shared and static targets.

The above automatically enabled for Windows builds, with an option to
disable with SHARE_LIB_OBJECT=OFF.

This patch extend this feature to all platforms as a manual option.
You can enable it by setting SHARE_LIB_OBJECT=ON. Then shared objects
are built in PIC mode, meaning the static lib will also have PIC code.

[EXPERIMENTAL]

Closes #11627

2ebc74c curl#11546 introduced sharing
libcurl objects for shared and static targets.

The above automatically enabled for Windows builds, with an option to
disable with `SHARE_LIB_OBJECT=OFF`.

This patch extend this feature for all platforms as a manual option.
You can enable it by setting `SHARE_LIB_OBJECT=ON`. Shared objects will
be built in PIC mode, meaning the static lib will also have PIC code.

EXPERIMENTAL.

Closes #xxxxx
@github-actions github-actions bot added the build label Aug 8, 2023
@vszakats vszakats closed this in fc9bfb1 Aug 9, 2023
@vszakats vszakats deleted the cmake-share-object-multiplatform branch August 9, 2023 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant