1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00

Fix install from read-only obj dir when SHLIB_LDSCRIPT is used.

Reported by:    joeld
Tested by:      joeld
This commit is contained in:
Jeremie Le Hen 2013-06-16 16:29:23 +00:00
parent b6113fb31a
commit 726ffc602b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=251810

View File

@ -330,9 +330,12 @@ _libinstall:
.if defined(SHLIB_LDSCRIPT) && !empty(SHLIB_LDSCRIPT) && exists(${.CURDIR}/${SHLIB_LDSCRIPT})
sed -e 's,@@SHLIB@@,${_LDSCRIPTROOT}${SHLIBDIR}/${SHLIB_NAME},g' \
-e 's,@@LIBDIR@@,${_LDSCRIPTROOT}${LIBDIR},g' \
${.CURDIR}/${SHLIB_LDSCRIPT} > lib${LIB}.ld
${.CURDIR}/${SHLIB_LDSCRIPT} > ${DESTDIR}${LIBDIR}/${SHLIB_LINK:R}.ld
${INSTALL} -S -C -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
${_INSTALLFLAGS} lib${LIB}.ld ${DESTDIR}${LIBDIR}/${SHLIB_LINK}
${_INSTALLFLAGS} ${DESTDIR}${LIBDIR}/${SHLIB_LINK:R}.ld \
${DESTDIR}${LIBDIR}/${SHLIB_LINK}
rm -f ${DESTDIR}${LIBDIR}/${SHLIB_LINK:R}.ld
.else
.if ${SHLIBDIR} == ${LIBDIR}
${INSTALL_SYMLINK} ${SHLIB_NAME} ${DESTDIR}${LIBDIR}/${SHLIB_LINK}