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
__json_c_strerror incompatibility with link-time optimization #357
Comments
Maybe try a "make V=1 check" to see what command it's actually running, then check that the libjson-c it's linking in is the correct one, with that symbol present. |
Relevant output of
|
Looks like it should be able to find it. Just a guess, but perhaps it's being picky about the order: try adjusting the Makefile.am so strerror_override.c is listed early in libjson_c_la_SOURCES, and ends up early in the .a file? |
I tried turning on LTO on a Debian Jessie (8) box, with gcc 4.9.2, and it worked fine there with no errors or warnings (once I hacked around some things to get it to use gcc-ar and gcc-ranlib). If there's something we can change to make this work for you, let me know and re-open this issue. |
When enabling
-flto
, the__json_c_strerror
symbol appears to exhibit issues. I'm not sure I fully understand the error, though.The text was updated successfully, but these errors were encountered: