aboutsummaryrefslogtreecommitdiff
path: root/lib/ncurses/config.mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2021-09-23 01:49:51 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2021-10-04 09:38:21 +0000
commit396851c20aebdfada7c108bef5695c6a372e75b1 (patch)
treed804827035f312c1111e7c81410795454b99163a /lib/ncurses/config.mk
parent8bc5971be1ece76284b2cdb0addf051afc14044a (diff)
downloadsrc-396851c20aebdfada7c108bef5695c6a372e75b1.tar.gz
src-396851c20aebdfada7c108bef5695c6a372e75b1.zip
ncurses: split libtinfo from libncurses
many external program expects libncurses to not be provided as a single library. Instead of fixing all ports, distribute ncurses the way upstream distributes it Turn libncursesw.so into a ldscript which will link automatically as needed to libtinfow so so this change is seamless at compile time. Differential Revision: https://reviews.freebsd.org/D32098
Diffstat (limited to 'lib/ncurses/config.mk')
-rw-r--r--lib/ncurses/config.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ncurses/config.mk b/lib/ncurses/config.mk
index 0ca0e4547ba8..c322cbeaa681 100644
--- a/lib/ncurses/config.mk
+++ b/lib/ncurses/config.mk
@@ -11,14 +11,14 @@ CFLAGS+= -D_XOPEN_SOURCE_EXTENDED
NCURSES_CFG_H= ${.CURDIR}/ncurses_cfg.h
CFLAGS+= -I.
-CFLAGS+= -I${.CURDIR:H}/ncurses
+CFLAGS+= -I${.CURDIR:H}/tinfo
# for ${NCURSES_CFG_H}
CFLAGS+= -I${.CURDIR:H}/ncurses
CFLAGS+= -I${NCURSES_DIR}/include
CFLAGS+= -I${NCURSES_DIR}/ncurses
-CFLAGS+= -I${.OBJDIR:H}/ncurses/
+CFLAGS+= -I${.OBJDIR:H}/tinfo/
CFLAGS+= -Wall
@@ -28,6 +28,7 @@ CFLAGS+= -DHAVE_CONFIG_H
# everyone needs this
.PATH: ${NCURSES_DIR}/include
+.PATH: ${.OBJDIR:H}/tinfo/
# tools and directories
AWK?= awk