Source-Changes-HG archive

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

[src/trunk]: src/share/mk If DESTDIR is set, add ${DESTDIR}/usr/libdata to th...



details:   https://anonhg.NetBSD.org/src/rev/f80bdb9b16f1
branches:  trunk
changeset: 536388:f80bdb9b16f1
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sat Sep 14 16:56:10 2002 +0000

description:
If DESTDIR is set, add ${DESTDIR}/usr/libdata to the lint library
search path.  This works around the problem of lint using the
wrong lint libraries until a "lint -d ..." equivalent is implemented
for libraries.

diffstat:

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

diffs (22 lines):

diff -r 0a00369b9897 -r f80bdb9b16f1 share/mk/bsd.lib.mk
--- a/share/mk/bsd.lib.mk       Sat Sep 14 16:46:24 2002 +0000
+++ b/share/mk/bsd.lib.mk       Sat Sep 14 16:56:10 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.lib.mk,v 1.205 2002/07/20 08:50:10 yamt Exp $
+#      $NetBSD: bsd.lib.mk,v 1.206 2002/09/14 16:56:10 thorpej Exp $
 #      @(#)bsd.lib.mk  8.3 (Berkeley) 4/22/94
 
 .include <bsd.init.mk>
@@ -428,8 +428,12 @@
 llib-l${LIB}.ln: ${LOBJS}
        @echo building llib-l${LIB}.ln
        @rm -f llib-l${LIB}.ln
+.if defined(DESTDIR)
+       @${LINT} -C${LIB} ${.ALLSRC} -L${DESTDIR}/usr/libdata ${LLIBS}
+.else
        @${LINT} -C${LIB} ${.ALLSRC} ${LLIBS}
 .endif
+.endif
 
 cleanlib:
        rm -f a.out [Ee]rrs mklog core *.core ${CLEANFILES}



Home | Main Index | Thread Index | Old Index