Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk When we build against DESTDIR, add the lint library...



details:   https://anonhg.NetBSD.org/src/rev/fd22b39a978c
branches:  trunk
changeset: 1026550:fd22b39a978c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 28 15:49:36 2021 +0000

description:
When we build against DESTDIR, add the lint library path for DESTDIR during
the link phase for lint.

diffstat:

 share/mk/bsd.prog.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 1c9f3040c5d9 -r fd22b39a978c share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk      Sun Nov 28 15:47:33 2021 +0000
+++ b/share/mk/bsd.prog.mk      Sun Nov 28 15:49:36 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.prog.mk,v 1.339 2021/08/23 22:13:27 mrg Exp $
+#      $NetBSD: bsd.prog.mk,v 1.340 2021/11/28 15:49:36 christos Exp $
 #      @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -632,8 +632,12 @@
 lint: lint-${_P}
 lint-${_P}: ${LOBJS.${_P}}
 .if defined(LOBJS.${_P}) && !empty(LOBJS.${_P})
+.if defined(DESTDIR)
+       ${LINT} ${LINTFLAGS} ${_LDFLAGS.${_P}:C/-L[  ]*/-L/Wg:M-L*} -L${DESTDIR}/usr/libdata/lint ${LOBJS.${_P}} ${_LDADD.${_P}}
+.else
        ${LINT} ${LINTFLAGS} ${_LDFLAGS.${_P}:C/-L[  ]*/-L/Wg:M-L*} ${LOBJS.${_P}} ${_LDADD.${_P}}
 .endif
+.endif
 
 .endfor # _P in ${PROGS} ${PROGS_CXX}                                  # }
 



Home | Main Index | Thread Index | Old Index