Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Sort DBG vs CPPFLAGS in the DEBUG case, as ...



details:   https://anonhg.NetBSD.org/src/rev/7e37a6e8c2e6
branches:  trunk
changeset: 808241:7e37a6e8c2e6
user:      martin <martin%NetBSD.org@localhost>
date:      Sun May 10 09:13:15 2015 +0000

description:
Sort DBG vs CPPFLAGS in the DEBUG case, as requested by Christos

diffstat:

 usr.sbin/sysinst/Makefile.inc |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (34 lines):

diff -r 23f6a297ca9e -r 7e37a6e8c2e6 usr.sbin/sysinst/Makefile.inc
--- a/usr.sbin/sysinst/Makefile.inc     Sun May 10 08:13:41 2015 +0000
+++ b/usr.sbin/sysinst/Makefile.inc     Sun May 10 09:13:15 2015 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.6 2015/05/09 06:15:42 martin Exp $
+#      $NetBSD: Makefile.inc,v 1.7 2015/05/10 09:13:15 martin Exp $
 #
 # Makefile for sysinst
 
@@ -6,10 +6,6 @@
 .include "${.CURDIR}/../../../Makefile.inc"
 .endif
 
-.if empty(DBG:M-g)
-COPTS += -Os
-.endif
-
 PROG=          sysinst
 NOMAN=         # defined
 
@@ -60,7 +56,12 @@
 # when compiling with -O0)
 O0TRACKING=    -fvar-tracking-assignments -fvar-tracking
 .endif
-CPPFLAGS+=-DDEBUG -g -O0 ${O0TRACKING}
+CPPFLAGS+=-DDEBUG
+DBG +=-g -O0 ${O0TRACKING}
+.endif
+
+.if empty(DBG:M-g)
+COPTS += -Os
 .endif
 
 .if (!defined(SMALLPROG) || defined(SMALLPROG_INET6)) && (${USE_INET6} != "no")



Home | Main Index | Thread Index | Old Index