GeezerVison is showing github.com — gh-155911: Fix curses detection with libraries in LIBS (GH-156130) · python/cpython@f74cdf8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +2Lines changed: 2 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +Fix curses detection with libraries in ``LIBS`` and |
| 2 | +:option:`--without-curses`. Patch by Shamil Abdulaev. |
Collapse file
Copy file name to clipboardExpand all lines: configure +3-2Lines changed: 3 additions & 2 deletions Collapse file
Copy file name to clipboardExpand all lines: configure.ac +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -7281,8 +7281,9 @@ WITH_SAVE_ENV([ |
7281 | 7281 | ]))]) |
7282 | 7282 |
|
7283 | 7283 | # Check that we're able to link with crucial curses/panel functions. This |
7284 | | - # also serves as a fallback in case pkg-config failed. |
7285 | | - AS_VAR_APPEND([LIBS], [" $CURSES_LIBS $PANEL_LIBS"]) |
| 7284 | + # also serves as a fallback in case pkg-config failed. Extension modules are |
| 7285 | + # not linked with LIBS, so exclude it to get the required libraries. |
| 7286 | + LIBS="$CURSES_LIBS $PANEL_LIBS" |
7286 | 7287 | AC_SEARCH_LIBS([initscr], [$curses_libs], |
7287 | 7288 | [AS_VAR_IF([have_curses], [no], |
7288 | 7289 | [AS_VAR_SET([have_curses], [yes]) |
|