When creating .so symlinks, use SHLIBDIR instead of LIBDIR so symlinks

are created in the correct location. Always make them. For libraries
that live in /lib, this causes a /lib/libfoo.so and a compatibility
/usr/lib/libfoo.so to be created. We may want to drop the
/usr/lib/libfoo.so symlink at some future point.
This commit is contained in:
Gordon Tetlow 2003-08-17 23:56:29 +00:00
parent 29796304f8
commit b20654d416
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119056

View file

@ -206,9 +206,8 @@ _libinstall:
${_INSTALLFLAGS} ${_SHLINSTALLFLAGS} \
${SHLIB_NAME} ${DESTDIR}${SHLIBDIR}
.if defined(SHLIB_LINK)
.if (${LIBDIR} == ${SHLIBDIR})
ln -fs ${SHLIB_NAME} ${DESTDIR}${LIBDIR}/${SHLIB_LINK}
.else
ln -fs ${SHLIB_NAME} ${DESTDIR}${SHLIBDIR}/${SHLIB_LINK}
.if (${LIBDIR} != ${SHLIBDIR})
ln -fs ${LIBDIR:C|/[^/]+|/..|g:S|^/||}${SHLIBDIR}/${SHLIB_NAME} \
${DESTDIR}${LIBDIR}/${SHLIB_LINK}
.endif