Module Name: src
Committed By: matt
Date: Sun Aug 23 23:12:40 UTC 2009
Modified Files:
src/share/mk [matt-nb5-mips64]: bsd.sys.mk
Log Message:
Use CPUFLAGS for -mno-abicall -fno-pic
To generate a diff of this commit:
cvs rdiff -u -r1.179.8.3 -r1.179.8.4 src/share/mk/bsd.sys.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.sys.mk
diff -u src/share/mk/bsd.sys.mk:1.179.8.3 src/share/mk/bsd.sys.mk:1.179.8.4
--- src/share/mk/bsd.sys.mk:1.179.8.3 Tue Aug 18 16:10:44 2009
+++ src/share/mk/bsd.sys.mk Sun Aug 23 23:12:39 2009
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.sys.mk,v 1.179.8.3 2009/08/18 16:10:44 uebayasi Exp $
+# $NetBSD: bsd.sys.mk,v 1.179.8.4 2009/08/23 23:12:39 matt Exp $
#
# Build definitions used for NetBSD source tree builds.
@@ -86,13 +86,17 @@
CFLAGS+= -Wa,-Av8plus
.endif
+.if (${MACHINE_ARCH} == "mips64el") || (${MACHINE_ARCH} == "mips64eb")
+CFLAGS+= -Wa,--fatal-warnings
+.endif
+
#.if ${MACHINE} == "sbmips"
#CFLAGS+= -mips64 -mtune=sb1
#.endif
.if (${MACHINE_ARCH} == "mips64el" || ${MACHINE_ARCH} == "mips64eb") && \
(defined(MKPIC) && ${MKPIC} == "no")
-COPTS+= -mno-abicalls -fno-PIC
+CPUFLAGS+= -mno-abicalls -fno-PIC
.endif
CFLAGS+= ${CPUFLAGS}
AFLAGS+= ${CPUFLAGS}