-
Notifications
You must be signed in to change notification settings - Fork 14.5k
[lldb] Fix linking to libtinfo #69458
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
Conversation
@llvm/pr-subscribers-lldb Author: Harmen Stoppels (haampie) Changes
Full diff: https://github.com/llvm/llvm-project/pull/69458.diff 1 Files Affected:
diff --git a/lldb/source/Core/CMakeLists.txt b/lldb/source/Core/CMakeLists.txt
index d7b4f2587a98bf9..9073e3e9b2ee33d 100644
--- a/lldb/source/Core/CMakeLists.txt
+++ b/lldb/source/Core/CMakeLists.txt
@@ -12,7 +12,7 @@ set(LLDB_LIBEDIT_LIBS)
if (LLDB_ENABLE_CURSES)
list(APPEND LLDB_CURSES_LIBS ${PANEL_LIBRARIES} ${CURSES_LIBRARIES})
if(LLVM_ENABLE_TERMINFO)
- list(APPEND LLDB_CURSES_LIBS ${TERMINFO_LIB})
+ list(APPEND LLDB_CURSES_LIBS ${Terminfo_LIBRARIES})
endif()
if (LLVM_BUILD_STATIC)
list(APPEND LLDB_CURSES_LIBS gpm)
|
I see that b663395 removed the variable, but I never saw this on a buildbot, must be a config we don't cover. What build configuration hits this issue? Please make a note of that in the commit message for future reference. |
It's basically the same issue as #25067. Happens when ncurses is configured with |
Ok now I understand. So please add what you just wrote to the commit message/ PR description. It will help anyone fighting the same issue later. |
And thanks for the patch, looks like the issue you linked was fixed, then would have been broken again for a time, and will now be fixed! All's well that ends well. |
Updated the PR description. That's sufficient? |
Thank you! |
If you have the ability to merge, go ahead. Otherwise I can click the button for you. |
I can't merge, feel free to do so! |
LLVM detects when ncurses has a separate terminfo library, but linking to it
was broken in lldb since b663395 (LLVM 14) due
to a change of variables. This commit fixes that oversight.