Skip to content

Commit f74cdf8

Browse files
authored
gh-155911: Fix curses detection with libraries in LIBS (GH-156130)
1 parent 4b9a1ca commit f74cdf8

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix curses detection with libraries in ``LIBS`` and
2+
:option:`--without-curses`. Patch by Shamil Abdulaev.

configure

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7281,8 +7281,9 @@ WITH_SAVE_ENV([
72817281
]))])
72827282
72837283
# 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"
72867287
AC_SEARCH_LIBS([initscr], [$curses_libs],
72877288
[AS_VAR_IF([have_curses], [no],
72887289
[AS_VAR_SET([have_curses], [yes])

0 commit comments

Comments
 (0)