summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libterm/Makefile6
-rw-r--r--lib/libtermcap/Makefile6
2 files changed, 8 insertions, 4 deletions
diff --git a/lib/libterm/Makefile b/lib/libterm/Makefile
index ba4218b..8c0bfaa 100644
--- a/lib/libterm/Makefile
+++ b/lib/libterm/Makefile
@@ -7,7 +7,9 @@ SRCS= termcap.c tgoto.c tputs.c
MAN3= termcap.0
MLINKS= termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
termcap.3 tgetstr.3 termcap.3 tgoto.3 termcap.3 tputs.3
-LINKS= ${LIBDIR}/libtermcap.a ${LIBDIR}/libtermlib.a \
- ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
+LINKS= ${LIBDIR}/libtermcap.a ${LIBDIR}/libtermlib.a
+.if !defined(NOPROFILE)
+LINKS+= ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
+.endif
.include <bsd.lib.mk>
diff --git a/lib/libtermcap/Makefile b/lib/libtermcap/Makefile
index ba4218b..8c0bfaa 100644
--- a/lib/libtermcap/Makefile
+++ b/lib/libtermcap/Makefile
@@ -7,7 +7,9 @@ SRCS= termcap.c tgoto.c tputs.c
MAN3= termcap.0
MLINKS= termcap.3 tgetent.3 termcap.3 tgetflag.3 termcap.3 tgetnum.3 \
termcap.3 tgetstr.3 termcap.3 tgoto.3 termcap.3 tputs.3
-LINKS= ${LIBDIR}/libtermcap.a ${LIBDIR}/libtermlib.a \
- ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
+LINKS= ${LIBDIR}/libtermcap.a ${LIBDIR}/libtermlib.a
+.if !defined(NOPROFILE)
+LINKS+= ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
+.endif
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud