diff --git a/lib/compat/compat1x/Makefile b/lib/compat/compat1x/Makefile index 07be405e869..ce1f8871444 100644 --- a/lib/compat/compat1x/Makefile +++ b/lib/compat/compat1x/Makefile @@ -22,6 +22,7 @@ ${lib}: ${lib}.gz.uu beforeinstall: ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \ ${DESTDIR}${LIBCOMPATDIR}/aout + rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@} # Get all the fruit, even though we don't set PROG. # XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty. diff --git a/lib/compat/compat20/Makefile b/lib/compat/compat20/Makefile index f416b3381b2..dc2df65ab3f 100644 --- a/lib/compat/compat20/Makefile +++ b/lib/compat/compat20/Makefile @@ -19,6 +19,7 @@ beforeinstall: ${DESTDIR}/usr/libexec ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \ ${DESTDIR}${LIBCOMPATDIR}/aout + rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@} # Get all the fruit, even though we don't set PROG. # XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty. diff --git a/lib/compat/compat21/Makefile b/lib/compat/compat21/Makefile index 652bbb7252f..7d58eb34f06 100644 --- a/lib/compat/compat21/Makefile +++ b/lib/compat/compat21/Makefile @@ -18,6 +18,7 @@ beforeinstall: ${DESTDIR}/usr/libexec ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \ ${DESTDIR}${LIBCOMPATDIR}/aout + rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@} # Get all the fruit, even though we don't set PROG. # XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty. diff --git a/lib/compat/compat22/Makefile b/lib/compat/compat22/Makefile index 94457f359a9..f919517c476 100644 --- a/lib/compat/compat22/Makefile +++ b/lib/compat/compat22/Makefile @@ -32,6 +32,7 @@ beforeinstall: @${ECHO} "libtermlib.so.2.1 -> libtermcap.so.2.1" ; \ cd ${DESTDIR}${LIBCOMPATDIR}/aout ; \ ln -sf libtermcap.so.2.1 libtermlib.so.2.1 + rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@} # Get all the fruit, even though we don't set PROG. # XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty. diff --git a/lib/compat/compat3x.i386/Makefile b/lib/compat/compat3x.i386/Makefile index 425e93f3983..492a423d8f3 100644 --- a/lib/compat/compat3x.i386/Makefile +++ b/lib/compat/compat3x.i386/Makefile @@ -22,6 +22,7 @@ ${lib}: ${lib}.gz.uu beforeinstall: ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \ ${DESTDIR}${LIBCOMPATDIR} + rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@} # Get all the fruit, even though we don't set PROG. # XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty. diff --git a/lib/compat/compat4x.alpha/Makefile b/lib/compat/compat4x.alpha/Makefile index 29a3fd8e2c9..52857f16930 100644 --- a/lib/compat/compat4x.alpha/Makefile +++ b/lib/compat/compat4x.alpha/Makefile @@ -22,6 +22,7 @@ ${lib}: ${lib}.gz.uu beforeinstall: ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \ ${DESTDIR}${LIBCOMPATDIR} + rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@} # Get all the fruit, even though we don't set PROG. # XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty. diff --git a/lib/compat/compat4x.i386/Makefile b/lib/compat/compat4x.i386/Makefile index 29a3fd8e2c9..52857f16930 100644 --- a/lib/compat/compat4x.i386/Makefile +++ b/lib/compat/compat4x.i386/Makefile @@ -22,6 +22,7 @@ ${lib}: ${lib}.gz.uu beforeinstall: ${INSTALL} ${COPY} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} ${LIBS} \ ${DESTDIR}${LIBCOMPATDIR} + rm -f ${LIBS:S@^@${DESTDIR}${SHLIBDIR}/@} # Get all the fruit, even though we don't set PROG. # XXX bsd.lib.mk has fruitflies, e.g., it fails if LIBS is empty.