On Sat, Feb 18, 2017 at 06:27:51PM -0800, Philip Guenther wrote:
> On Sat, Feb 18, 2017 at 6:16 PM, Jonathan Gray <[email protected]> wrote:
> > binutils 2.15 is built for gdb. There is no support for arm64/aarch64
> > here and it doesn't build so don't try to.
> >
> > Manual pages depend on running configure which again doesn't know about
> > aarch64.
> >
> > Index: Makefile.bsd-wrapper
> > ===================================================================
> > RCS file: /cvs/src/gnu/usr.bin/binutils/Makefile.bsd-wrapper,v
>
> I would expect this to be controlled in gnu/usr.bin/Makefile itself,
> like the selection of compiler is.
>
>
> Philip Guenther
>
Index: Makefile
===================================================================
RCS file: /cvs/src/gnu/usr.bin/Makefile,v
retrieving revision 1.57
diff -u -p -r1.57 Makefile
--- Makefile 29 Jan 2017 03:48:08 -0000 1.57
+++ Makefile 19 Feb 2017 02:42:47 -0000
@@ -17,7 +17,11 @@ SUBDIR+= clang
SUBDIR+= cxxfilt cvs
# binutils-2.17 needs to build gdb in binutils at the moment
+.if make(obj)
SUBDIR+= binutils
+.elif ${MACHINE_CPU} != "aarch64"
+SUBDIR+= binutils
+.endif
SUBDIR+= binutils-2.17
# Do these last; texinfo builds the info 'dir' file, perl must be after
binutils