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

compile with -fPIC #4

Open
JoergBitzer opened this issue Apr 13, 2023 · 2 comments
Open

compile with -fPIC #4

JoergBitzer opened this issue Apr 13, 2023 · 2 comments

Comments

@JoergBitzer
Copy link

The static library should be compiled with -fPIC (Linux). To do so, you should add in your CMakeLists.txt after line 46 (add_library)

set_property(TARGET ${PROJECT_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON)

@franshej
Copy link
Owner

Thanks, would you mind create a pr for this change? :)

@JoergBitzer
Copy link
Author

Sorry, what is a pr? I am sure I can do it.

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

No branches or pull requests

2 participants