mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Make the extra dependencies in DPADD be dependencies of PROG_FULL and
SHLIB_NAME_FULL so that the full binary is relinked when a dependency changes. Right now the existing full binary is left as-is and only the objcopy to remove debug symbols is run. Differential Revision: https://reviews.freebsd.org/D1834 Reviewed by: emaste MFC after: 3 days
This commit is contained in:
parent
9cdc138838
commit
37fd8bc2cb
2 changed files with 5 additions and 5 deletions
|
|
@ -286,7 +286,7 @@ _EXTRADEPEND:
|
|||
mv $$TMP ${DEPENDFILE}
|
||||
.if !defined(NO_EXTRADEPEND) && defined(SHLIB_NAME)
|
||||
.if defined(DPADD) && !empty(DPADD)
|
||||
echo ${SHLIB_NAME}: ${DPADD} >> ${DEPENDFILE}
|
||||
echo ${SHLIB_NAME_FULL}: ${DPADD} >> ${DEPENDFILE}
|
||||
.endif
|
||||
.endif
|
||||
|
||||
|
|
|
|||
|
|
@ -168,15 +168,15 @@ CLEANFILES+= ${OBJS}
|
|||
_EXTRADEPEND:
|
||||
.if defined(LDFLAGS) && !empty(LDFLAGS:M-nostdlib)
|
||||
.if defined(DPADD) && !empty(DPADD)
|
||||
echo ${PROG}: ${DPADD} >> ${DEPENDFILE}
|
||||
echo ${PROG_FULL}: ${DPADD} >> ${DEPENDFILE}
|
||||
.endif
|
||||
.else
|
||||
echo ${PROG}: ${LIBC} ${DPADD} >> ${DEPENDFILE}
|
||||
echo ${PROG_FULL}: ${LIBC} ${DPADD} >> ${DEPENDFILE}
|
||||
.if defined(PROG_CXX)
|
||||
.if ${COMPILER_TYPE} == "clang" && empty(CXXFLAGS:M-stdlib=libstdc++)
|
||||
echo ${PROG}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
|
||||
echo ${PROG_FULL}: ${LIBCPLUSPLUS} >> ${DEPENDFILE}
|
||||
.else
|
||||
echo ${PROG}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
|
||||
echo ${PROG_FULL}: ${LIBSTDCPLUSPLUS} >> ${DEPENDFILE}
|
||||
.endif
|
||||
.endif
|
||||
.endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue