Module Name: src
Committed By: mrg
Date: Thu Dec 17 07:24:06 UTC 2009
Modified Files:
src/gnu/lib/crtstuff4: Makefile
Log Message:
copy across a hack from the mips libc/mcount build. self documenting:
+.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
+# Turn off as(1) warnings on MIPS, since warnings are fatal with WARNS>0
+# and GCC configury passes -finhibit-size-directive which causes mips-gas
+# to barf. Don't know what the real fix for this is...
+#
+# XXX should be COPTS, but that's too early
+CPUFLAGS+=-Wa,--no-warn
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/gnu/lib/crtstuff4/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/gnu/lib/crtstuff4/Makefile
diff -u src/gnu/lib/crtstuff4/Makefile:1.3 src/gnu/lib/crtstuff4/Makefile:1.4
--- src/gnu/lib/crtstuff4/Makefile:1.3 Mon Aug 4 04:53:22 2008
+++ src/gnu/lib/crtstuff4/Makefile Thu Dec 17 07:24:06 2009
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2008/08/04 04:53:22 lukem Exp $
+# $NetBSD: Makefile,v 1.4 2009/12/17 07:24:06 mrg Exp $
REQUIRETOOLS= yes
NOLINT= # defined
@@ -66,6 +66,15 @@
${CC} ${CPPFLAGS} ${GCFLAGS} ${CPUFLAGS} -c ${.IMPSRC} -o ${.TARGET}.o
mv ${.TARGET}.o ${.TARGET}
+.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
+# Turn off as(1) warnings on MIPS, since warnings are fatal with WARNS>0
+# and GCC configury passes -finhibit-size-directive which causes mips-gas
+# to barf. Don't know what the real fix for this is...
+#
+# XXX should be COPTS, but that's too early
+CPUFLAGS+=-Wa,--no-warn
+.endif
+
.else
.include <bsd.prog.mk> # do nothing