Skip to content

Commit

Permalink
Fix linking issue of _readline.so (missing ncursesw library)
Browse files Browse the repository at this point in the history
  by setting FAKE_NCURSES to YES only on NetBSD.
  • Loading branch information
cheusov committed Apr 30, 2024
1 parent 41e0f41 commit b810eda
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions lang/python311/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.28 2024/04/30 20:51:14 cheusov Exp $
# $NetBSD: Makefile,v 1.29 2024/04/30 21:09:15 cheusov Exp $

.include "dist.mk"

Expand Down Expand Up @@ -45,16 +45,18 @@ CONFIGURE_ENV+= OPT=${CFLAGS:M*:Q}
CONFIGURE_ENV+= ac_cv_path_mkdir=${TOOLS_PATH.mkdir}
PKGCONFIG_OVERRIDE+= Misc/python.pc.in Misc/python-embed.pc.in

# NetBSD-8 curses has enough support for py-curses
USE_CURSES= getsyx wide
# But we build as ncurses still to get the full feature set easily
FAKE_NCURSES= yes

PTHREAD_OPTS+= require
.include "../../mk/pthread.buildlink3.mk"

.include "../../mk/bsd.prefs.mk"

# NetBSD-8 curses has enough support for py-curses
USE_CURSES= getsyx wide
# But we build as ncurses still to get the full feature set easily
.if ${OPSYS} == "NetBSD"
FAKE_NCURSES= yes
.endif

.if ${USE_CROSS_COMPILE:U:tl} == yes
TOOL_DEPENDS+= ${PKGNAME}:../../${PKGPATH}
CONFIGURE_ARGS+= --with-build-python=${TOOLBASE:Q}/bin/python3.11
Expand Down

0 comments on commit b810eda

Please sign in to comment.