[all-commits] [llvm/llvm-project] 28722d: Summary: [lldb] Fix libncurses, libpanel library l...

Hau Hsu via All-commits all-commits at lists.llvm.org
Wed Jun 28 00:00:58 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28722dcc2556b9cea5c7d9a4dd8343ac68e696ef
      https://github.com/llvm/llvm-project/commit/28722dcc2556b9cea5c7d9a4dd8343ac68e696ef
  Author: Hau Hsu <hau.hsu at sifive.com>
  Date:   2023-06-28 (Wed, 28 Jun 2023)

  Changed paths:
    M lldb/source/Core/CMakeLists.txt

  Log Message:
  -----------
  Summary: [lldb] Fix libncurses, libpanel library link order

libpanel depends on libcurses, so when linking static libraries, libpanel
should be places prior to libcurses.

This patch resolves error like:
```
.../x86_64-centos6-linux-gnu/bin/ld:
.../lib/libpanelw.a(p_show.o):
in function `show_panel':
p_show.c:(.text+0x39): undefined reference to `_nc_panelhook_sp'
.../x86_64-centos6-linux-gnu/bin/ld:
.../lib/libpanelw.a(p_show.o):
in function `update_panels_sp':
p_update.c:(.text+0x1f): undefined reference to `_nc_panelhook_sp'
collect2: error: ld returned 1 exit status
```

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D153844




More information about the All-commits mailing list