diff --git a/lib/libtermcap/Makefile b/lib/libtermcap/Makefile index 4fef3a1f0db..65c4ed3a343 100644 --- a/lib/libtermcap/Makefile +++ b/lib/libtermcap/Makefile @@ -7,13 +7,13 @@ SRCS= termcap.c tgoto.c tputs.c MAN3= termcap.3 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 +LINKS= ${DESTDIR}${LIBDIR}/libtermcap.a ${DESTDIR}${LIBDIR}/libtermlib.a .if !defined(NOPIC) -LINKS+= ${LIBDIR}/libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ - ${LIBDIR}/libtermlib.so.${SHLIB_MAJOR}.${SHLIB_MINOR} +LINKS+= ${DESTDIR}${SHLIBDIR}/libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \ + ${DESTDIR}${SHLIBDIR}/libtermlib.so.${SHLIB_MAJOR}.${SHLIB_MINOR} .endif .if !defined(NOPROFILE) -LINKS+= ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a +LINKS+= ${DESTDIR}${LIBDIR}/libtermcap_p.a ${DESTDIR}${LIBDIR}/libtermlib_p.a .endif .include