Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk Allow optimizer/debug flags to be changed on comman...
details: https://anonhg.NetBSD.org/src/rev/a33bbd6f3f36
branches: trunk
changeset: 485603:a33bbd6f3f36
user: sjg <sjg%NetBSD.org@localhost>
date: Tue May 02 03:44:36 2000 +0000
description:
Allow optimizer/debug flags to be changed on command line without
breaking everything. Eg. use DBG="-O0 -g" when debugging something.
diffstat:
share/mk/sys.mk | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r c150ee013776 -r a33bbd6f3f36 share/mk/sys.mk
--- a/share/mk/sys.mk Tue May 02 03:43:15 2000 +0000
+++ b/share/mk/sys.mk Tue May 02 03:44:36 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: sys.mk,v 1.56 1999/11/15 06:14:23 matt Exp $
+# $NetBSD: sys.mk,v 1.57 2000/05/02 03:44:36 sjg Exp $
# @(#)sys.mk 8.2 (Berkeley) 3/21/94
unix?= We run NetBSD.
@@ -27,10 +27,11 @@
${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipseb" || \
${MACHINE_ARCH} == "sparc" || \
${MACHINE_ARCH} == "vax"
-CFLAGS?= -O2
+DBG?= -O2
.else
-CFLAGS?= -O
+DBG?= -O
.endif
+CFLAGS?= ${DBG}
COMPILE.c?= ${CC} ${CFLAGS} ${CPPFLAGS} -c
LINK.c?= ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}
Home |
Main Index |
Thread Index |
Old Index