summaryrefslogtreecommitdiffstats
path: root/lib/libtermcap/Makefile
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-12-19 22:11:29 +0000
committerbde <bde@FreeBSD.org>1997-12-19 22:11:29 +0000
commit9b8ba91c4fd5fdfadb375af5296e2915e1044cfd (patch)
treeba7381bea5ceb8c43d60ab9dc434204f27c8f7b4 /lib/libtermcap/Makefile
parent0a1b5e5ec2b4ba8be96e2ba039492f2b2753beb1 (diff)
downloadFreeBSD-src-9b8ba91c4fd5fdfadb375af5296e2915e1044cfd.zip
FreeBSD-src-9b8ba91c4fd5fdfadb375af5296e2915e1044cfd.tar.gz
Fixed the termcap 3.0 hacks. They were very broken in my configuration
where shared libraries are in /lib and almost everything is linked shared. First, they removed the old shared library before installing the new one. Second, they attemped a cross-device link from /lib to /usr/lib/compat.
Diffstat (limited to 'lib/libtermcap/Makefile')
-rw-r--r--lib/libtermcap/Makefile21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/libtermcap/Makefile b/lib/libtermcap/Makefile
index c339196..632de37 100644
--- a/lib/libtermcap/Makefile
+++ b/lib/libtermcap/Makefile
@@ -19,19 +19,20 @@ LINKS+= ${SHLIBDIR}/libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
LINKS+= ${LIBDIR}/libtermcap_p.a ${LIBDIR}/libtermlib_p.a
.endif
+beforeinstall:
+ ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/termcap.h \
+ ${DESTDIR}/usr/include
+
# This is a hack.. Work around a major number bump that should have been
# done differently. Back out this delta when it's time to go to 3.0 for real.
.if !defined(NOPIC)
-LINKS+= ${SHLIBDIR}/libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
- /usr/lib/compat/libtermcap.so.3.0
-LINKS+= ${SHLIBDIR}/libtermcap.so.${SHLIB_MAJOR}.${SHLIB_MINOR} \
- /usr/lib/compat/libtermlib.so.3.0
+afterinstall:
+.for lib in libtermcap.so libtermlib.so
+ rm -f ${DESTDIR}/usr/lib/compat/${lib}.3.0
+ ln -s ${SHLIBDIR}/${lib}.${SHLIB_MAJOR}.${SHLIB_MINOR} \
+ ${DESTDIR}/usr/lib/compat/${lib}.3.0
+ rm -f ${DESTDIR}${SHLIBDIR}/${lib}.3.0
+.endfor
.endif
-beforeinstall:
- ${INSTALL} -C -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/termcap.h \
- ${DESTDIR}/usr/include
- rm -f ${DESTDIR}${SHLIBDIR}/libtermcap.so.3.0 \
- ${DESTDIR}${SHLIBDIR}/libtermlib.so.3.0
-
.include <bsd.lib.mk>
OpenPOWER on IntegriCloud