summaryrefslogtreecommitdiff
path: root/tools/binutils/Makefile
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2014-01-29 23:35:13 +0000
committerjoerg <joerg@NetBSD.org>2014-01-29 23:35:13 +0000
commitc8a6eb903cf136442fb451c4ffd74d54d533fe69 (patch)
treef08bbf57efa703aad0b7168e7afb1a262d989e36 /tools/binutils/Makefile
parent567af99c93ba9391a1dc4de8e3555c7514c31a58 (diff)
For the tools build, always use the Bison-created m68 asm parser.
Fixes build on Linux, where the glibc guards trip up the "must-be-included-first" check in config.h.
Diffstat (limited to 'tools/binutils/Makefile')
-rw-r--r--tools/binutils/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/binutils/Makefile b/tools/binutils/Makefile
index b24d9f6c434..0f89c71fd1f 100644
--- a/tools/binutils/Makefile
+++ b/tools/binutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2012/04/15 08:37:32 mrg Exp $
+# $NetBSD: Makefile,v 1.23 2014/01/29 23:35:13 joerg Exp $
.include <bsd.own.mk>
@@ -16,6 +16,13 @@ CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} --disable-nls \
--disable-werror \
${BRANDING}
+${.OBJDIR}/build/gas/m68k-parse.c: ${GNUHOSTDIST}/gas/m68k-parse.c
+ @mkdir build 2>/dev/null || true
+ @mkdir build/gas 2>/dev/null || true
+ cat ${GNUHOSTDIST}/gas/m68k-parse.c > ${.TARGET}
+
+.configure_done: ${.OBJDIR}/build/gas/m68k-parse.c
+
MAKE_ARGS= MACHINE= MAKEINFO=${TOOL_MAKEINFO:Q}
ALL_TARGET= all-binutils all-gas all-ld