Module Name:    src
Committed By:   joerg
Date:           Wed Jan 29 23:35:13 UTC 2014

Modified Files:
        src/tools/binutils: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/tools/binutils/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tools/binutils/Makefile
diff -u src/tools/binutils/Makefile:1.22 src/tools/binutils/Makefile:1.23
--- src/tools/binutils/Makefile:1.22	Sun Apr 15 08:37:32 2012
+++ src/tools/binutils/Makefile	Wed Jan 29 23:35:13 2014
@@ -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_P
 		--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

Reply via email to