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

Issue #508: -fPIC to link libjson-c.a with libs #634

Merged
merged 1 commit into from Jun 14, 2020

Conversation

micahsnyder
Copy link
Contributor

json-c has symbol collisions with other popular C JSON libraries.
To prevent random crashes in downstream applications that may use a
library which depends on json-c, the solution is to statically link
libjson-c.a into those libraries.

-fPIC/-fPIE is required when building a .a so it can be linked
into a .so.

json-c has symbol collisions with other popular C JSON libraries.
To prevent random crashes in downstream applications that may use a
library which depends on json-c, the solution is to statically link
libjson-c.a into those libraries.

`-fPIC`/`-fPIE` is required when building a `.a` so it can be linked
into a `.so`.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.954% when pulling 6049468 on micahsnyder:json-c-fPIC into bc06f82 on json-c:master.

@hawicz hawicz merged commit 401b29c into json-c:master Jun 14, 2020
@micahsnyder micahsnyder deleted the json-c-fPIC branch June 14, 2020 21:59
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.

None yet

3 participants