mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
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:
parent
29796304f8
commit
b20654d416
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119056
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue