Skip to content

Make -fPIC flag private#5189

Closed
souvik1997 wants to merge 1 commit intoaws:mainfrom
souvik1997:patch-1
Closed

Make -fPIC flag private#5189
souvik1997 wants to merge 1 commit intoaws:mainfrom
souvik1997:patch-1

Conversation

@souvik1997
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

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

@camshaft
Copy link
Copy Markdown
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
Copy Markdown
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.

@jmayclin
Copy link
Copy Markdown
Contributor

Closing this PR, as your commits were merged in with #5227 . Thanks for the contribution!

@jmayclin jmayclin closed this Apr 14, 2025
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

4 participants