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

Make -fPIC flag private #5189

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

Make -fPIC flag private #5189

wants to merge 1 commit into from

Conversation

souvik1997
Copy link
Contributor

@souvik1997 souvik1997 commented Mar 13, 2025

Release Summary:

Resolved issues:

resolves #5188

Description of changes:

Change fPIC flag to PRIVATE so that it is not propagated to targets that link s2n

Call-outs:

Testing:

Built successfully.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@camshaft
Copy link
Contributor

We'll also need this set on the test lib, since that doesn't inherit anymore:

target_compile_options(testss2n PUBLIC -include "${S2N_PRELUDE}")

@souvik1997
Copy link
Contributor Author

@camshaft to be clear, you want that to be PRIVATE as well?

@camshaft
Copy link
Contributor

It's a library that's used internally so it's probably fine to have it PUBLIC, just to make sure anything that links to it also gets it. But probably not a big deal either way.

@souvik1997
Copy link
Contributor Author

I would rather leave this PR as-is to reduce risk and keep the changes focused. I don't have an easy way to test the proposed change to the testing lib anyway.

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.

Consider Changing -fPIC to PRIVATE in CMakeLists.txt
3 participants