Source-Changes-HG archive

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

[src/trunk]: src/share/mk don't try to build .debug files for shell scripts.



details:   https://anonhg.NetBSD.org/src/rev/2955253f046c
branches:  trunk
changeset: 828375:2955253f046c
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 10 15:11:47 2017 +0000

description:
don't try to build .debug files for shell scripts.

diffstat:

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

diffs (19 lines):

diff -r b4e928f6a547 -r 2955253f046c share/mk/bsd.prog.mk
--- a/share/mk/bsd.prog.mk      Sun Dec 10 14:29:47 2017 +0000
+++ b/share/mk/bsd.prog.mk      Sun Dec 10 15:11:47 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.prog.mk,v 1.308 2017/10/10 19:29:44 christos Exp $
+#      $NetBSD: bsd.prog.mk,v 1.309 2017/12/10 15:11:47 christos Exp $
 #      @(#)bsd.prog.mk 8.2 (Berkeley) 4/2/94
 
 .ifndef HOSTPROG
@@ -431,7 +431,8 @@
 BINDIR.${_P}?=         ${BINDIR}
 PROGNAME.${_P}?=       ${_P}
 
-.if ${MKDEBUG:Uno} != "no" && !defined(NODEBUG) && !commands(${_P})
+.if ${MKDEBUG:Uno} != "no" && !defined(NODEBUG) && !commands(${_P}) && \
+    !empty(OBJS.${_P})
 _PROGDEBUG.${_P}:=     ${PROGNAME.${_P}}.debug
 .endif
 



Home | Main Index | Thread Index | Old Index