-
Notifications
You must be signed in to change notification settings - Fork 97
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
It doesn't seem possible to disable LTO #315
Labels
Comments
4 tasks
hughsie
added a commit
to fwupd/fwupd
that referenced
this issue
Apr 9, 2024
It seems there's no way to *disable* LTO using cmake -- and LTO isn't going to work for a static library... See PJK/libcbor#315 for the root issue.
hughsie
added a commit
to fwupd/fwupd
that referenced
this issue
Apr 9, 2024
It seems there's no way to *disable* LTO using cmake -- and LTO isn't going to work for a static library... See PJK/libcbor#315 for the root issue.
Thank you, please LMK if the fix doesn't work. |
hughsie
added a commit
to fwupd/fwupd
that referenced
this issue
Apr 16, 2024
4 tasks
hughsie
added a commit
to fwupd/fwupd
that referenced
this issue
Apr 16, 2024
chenhn123
pushed a commit
to chenhn123/fwupd
that referenced
this issue
May 21, 2024
It seems there's no way to *disable* LTO using cmake -- and LTO isn't going to work for a static library... See PJK/libcbor#315 for the root issue.
chenhn123
pushed a commit
to chenhn123/fwupd
that referenced
this issue
May 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I need to build libcbor without LTO as part of a static fuzzing target in the fwupd project. Wit LTO enabled I get
/work/lib/libcbor.a: error adding symbols: file format not recognized
To Reproduce
Run
cmake -DINTERPROCEDURAL_OPTIMIZATION=OFF
-- which I did hope would disable LTO even tho my compiler supports it.Expected behavior
I can make a static library to use in my fuzzing tests.
Environment
libcbor-0.11.0-1.fc40.x86_64 but also testing with git master branch. Thanks for any pointers!
The text was updated successfully, but these errors were encountered: