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: set(CMAKE_POSITION_INDEPENDENT_CODE ON) #2475

Merged
merged 2 commits into from
Sep 7, 2022
Merged

Conversation

nigels-com
Copy link
Contributor

We're using spdlog as a static library. On Linux it's necessary to use -fPIC flag to link spdlog into shared or executable targets.

@gabime
Copy link
Owner

gabime commented Sep 2, 2022

This depends on usage.. For example if bulding spdlog as static lib it might be not desirable.

@nigels-com
Copy link
Contributor Author

This depends on usage.. For example if bulding spdlog as static lib it might be not desirable.

As an opt-in option, then?

@gabime
Copy link
Owner

gabime commented Sep 2, 2022

Yes. Thanks

@gabime gabime merged commit 81de01c into gabime:v1.x Sep 7, 2022
@gabime
Copy link
Owner

gabime commented Sep 7, 2022

Thanks @nigels-com

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.

2 participants