Convert the /usr/lib/libfoo.so -> /lib/libfoo.so.M.N link into a relative link.
This simplifies using ld with ${DESTDIR}/usr/lib whilst retaining the (slightly faster) absolute links for the run-time libraries. Per discussion on tech-toolchain. (Side note; install(1) -l r needs the source to be prefixed with ${DESTDIR} to operate correctly, which makes it non trivial to enable '-l r' by default for all ${INSTALL_SYMLINK}s)
This commit is contained in:
parent
5ce86a019f
commit
eee88ffea0
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.lib.mk,v 1.246 2004/01/29 01:48:45 lukem Exp $
|
||||
# $NetBSD: bsd.lib.mk,v 1.247 2004/02/06 12:34:11 lukem Exp $
|
||||
# @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94
|
||||
|
||||
.include <bsd.init.mk>
|
||||
|
@ -586,7 +586,7 @@ ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION}: lib${LIB}.so.${SHLIB_F
|
|||
${DESTDIR}${_LIBSODIR}/lib${LIB}.so
|
||||
.if ${_LIBSODIR} != ${LIBDIR}
|
||||
${INSTALL_SYMLINK} ${SYSPKGTAG} \
|
||||
${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \
|
||||
-l r ${DESTDIR}${_LIBSODIR}/lib${LIB}.so.${SHLIB_FULLVERSION} \
|
||||
${DESTDIR}${LIBDIR}/lib${LIB}.so
|
||||
.endif
|
||||
.endif
|
||||
|
|
Loading…
Reference in New Issue