summaryrefslogtreecommitdiffstats
path: root/lib/libtermcap/Makefile
diff options
context:
space:
mode:
authorats <ats@FreeBSD.org>1994-11-18 12:38:43 +0000
committerats <ats@FreeBSD.org>1994-11-18 12:38:43 +0000
commitb600470787ac5c1b875a9418043f03b7d4006b18 (patch)
tree64ef16e0ecbbcce52a219cd5ddf2a9f56f79b2a9 /lib/libtermcap/Makefile
parent4038d7254e608598e3735ce0729510e346642d76 (diff)
downloadFreeBSD-src-b600470787ac5c1b875a9418043f03b7d4006b18.zip
FreeBSD-src-b600470787ac5c1b875a9418043f03b7d4006b18.tar.gz
Makefile:
Change the reference for the libtermcap libtermlib link from SHLIBDIR to LIBDIR. SHLIBDIR is undefined in the standard case. termcap.c: Initialize a local variable to zero. Otherwise an erroneous free call can happen and clobber the calling program. Seen with vi and gdb. If you have TERMCAP set with a terminal entry and set TERM with something like huhu, vi and gdb core dumps.
Diffstat (limited to 'lib/libtermcap/Makefile')
-rw-r--r--lib/libtermcap/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtermcap/Makefile b/lib/libtermcap/Makefile
index fbfa7f5..4fef3a1 100644
--- a/lib/libtermcap/Makefile
+++ b/lib/libtermcap/Makefile
@@ -9,8 +9,8 @@ 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
.if !defined(NOPIC)
-LINKS+= ${SHLIBDIR}/libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
- ${SHLIBDIR}/libtermlib.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
+LINKS+= ${LIBDIR}/libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+ ${LIBDIR}/libtermlib.so.${SHLIB_MAJOR}.${SHLIB_MINOR}
.endif
.if !defined(NOPROFILE)
LINKS+= ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
OpenPOWER on IntegriCloud