Skip to content

Consider Changing -fPIC to PRIVATE in CMakeLists.txt #5188

@souvik1997

Description

@souvik1997

Hi,

I noticed that in the CMake configuration, the -fPIC compile option is added as a PUBLIC option:

target_compile_options(${PROJECT_NAME} PUBLIC -fPIC)

Would it be possible to change this to PRIVATE? Making it PUBLIC propagates -fPIC to all targets linking s2n, which might be unnecessary or even problematic for some consumers of the library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions