Module Name: src
Committed By: mrg
Date: Wed Mar 23 05:24:54 UTC 2016
Modified Files:
src/external/gpl3/binutils.old/lib/libbfd: Makefile
Log Message:
workaround a problem in old binutils and GCC 5.3.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/binutils.old/lib/libbfd/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/binutils.old/lib/libbfd/Makefile
diff -u src/external/gpl3/binutils.old/lib/libbfd/Makefile:1.2 src/external/gpl3/binutils.old/lib/libbfd/Makefile:1.3
--- src/external/gpl3/binutils.old/lib/libbfd/Makefile:1.2 Tue Jan 26 19:38:09 2016
+++ src/external/gpl3/binutils.old/lib/libbfd/Makefile Wed Mar 23 05:24:54 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2016/01/26 19:38:09 christos Exp $
+# $NetBSD: Makefile,v 1.3 2016/03/23 05:24:54 mrg Exp $
NOLINKLIB= # defined
NOLINT= # defined
@@ -60,6 +60,13 @@ INFOFLAGS= -I${DIST}/bfd/doc
${OBJS} ${SOBJS}: elf32-target.h elf64-target.h
targets.o targets.pico: targmatch.h Makefile
+
+# XXXGCC5
+.include <bsd.own.mk>
+.if defined(HAVE_GCC) && ${HAVE_GCC} == 53 && ${ACTIVE_CC} == "gcc"
+COPTS.elf64-alpha.c+= -Wno-error=switch-bool
+.endif
+
.else
.include <bsd.prog.mk> # do nothing
.endif