Skip to content

Commit a013c77

Browse files
committed
pythongh-159612: Link cross-built readline extension with termcap
1 parent 1631fe8 commit a013c77

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/tail-call.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ jobs:
126126
export PKG_CONFIG="pkg-config --static"
127127
export PKG_CONFIG_PATH=""
128128
export PKG_CONFIG_LIBDIR="$deps/lib/pkgconfig:$deps/share/pkgconfig"
129+
# The macOS SDK provides `libtermcap` without the `termcap.pc` required by `readline.pc`.
130+
export LIBREADLINE_CFLAGS="-I$deps/include"
131+
export LIBREADLINE_LIBS="-L$deps/lib -lreadline -ltermcap"
129132
# By default, `configure` clears the Darwin release when cross-compiling,
130133
# which hides APIs such as `sendfile`. Set it and cache results for checks
131134
# that cannot run while cross-compiling.

0 commit comments

Comments
 (0)