Module Name:    src
Committed By:   christos
Date:           Sun Nov 28 15:49:36 UTC 2021

Modified Files:
        src/share/mk: bsd.prog.mk

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


To generate a diff of this commit:
cvs rdiff -u -r1.339 -r1.340 src/share/mk/bsd.prog.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.prog.mk
diff -u src/share/mk/bsd.prog.mk:1.339 src/share/mk/bsd.prog.mk:1.340
--- src/share/mk/bsd.prog.mk:1.339	Mon Aug 23 18:13:27 2021
+++ src/share/mk/bsd.prog.mk	Sun Nov 28 10:49:36 2021
@@ -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 @@ ${DESTDIR}${DEBUGDIR}${BINDIR.${_P}}/${_
 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}					# }
 

Reply via email to