Implement a workaround for GNU mak jobserver
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 12 Jan 2021 13:45:28 +0000 (05:45 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 12 Jan 2021 13:45:44 +0000 (05:45 -0800)
commitd546b61084cec687e0063b2e0e169b4690341c23
tree389d7dbe570f63dfe1e463499b13a9b3728f2472
parent18bfb5057f2cee5079208cd70eb463892f5ff154
Implement a workaround for GNU mak jobserver

Compiling binutils using -flto=jobserver with GCC 11 leads to

libtool: link: gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Wwrite-strings -I../../gas/../zlib -g -O2 -fprofile-generate -flto=jobserver -o as-new app.o as.o atof-generic.o compress-debug.o cond.o depend.o dwarf2dbg.o dw2gencfi.o ecoff.o ehopt.o expr.o flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o input-scrub.o listing.o literal.o macro.o messages.o output-file.o read.o remap.o sb.o stabs.o subsegs.o symbols.o write.o config/tc-i386.o config/obj-elf.o config/atof-ieee.o  ../opcodes/.libs/libopcodes.a ../bfd/.libs/libbfd.a -L/tmp/binutils-gdb/objdir/zlib -lz ../libiberty/libiberty.a -ldl
lto-wrapper: warning: jobserver is not available: '--jobserver-auth=' is not present in 'MAKEFLAGS'

since the '+' is missing on the recipe line in Makefiles generated by
automake.  Add the '+' to the recipe line by hand.

bfd/

PR binutils/26792
* configure.ac: Use GNU_MAKE_JOBSERVER.
* aclocal.m4: Regenerated.
* configure: Likewise.

binutils/

PR binutils/26792
* configure.ac: Use GNU_MAKE_JOBSERVER.
* aclocal.m4: Regenerated.
* configure: Likewise.

config/

PR binutils/26792
* jobserver.m4: New file.

gas/

PR binutils/26792
* configure.ac: Use GNU_MAKE_JOBSERVER.
* aclocal.m4: Regenerated.
* configure: Likewise.

gprof/

PR binutils/26792
* configure.ac: Use GNU_MAKE_JOBSERVER.
* aclocal.m4: Regenerated.
* configure: Likewise.

ld/

PR binutils/26792
* configure.ac: Use GNU_MAKE_JOBSERVER.
* aclocal.m4: Regenerated.
* configure: Likewise.

libctf/

PR binutils/26792
* configure.ac: Use GNU_MAKE_JOBSERVER.
* aclocal.m4: Regenerated.
* configure: Likewise.

opcodes/

PR binutils/26792
* configure.ac: Use GNU_MAKE_JOBSERVER.
* aclocal.m4: Regenerated.
* configure: Likewise.
30 files changed:
bfd/ChangeLog
bfd/aclocal.m4
bfd/configure
bfd/configure.ac
binutils/ChangeLog
binutils/aclocal.m4
binutils/configure
binutils/configure.ac
config/ChangeLog
config/jobserver.m4 [new file with mode: 0644]
gas/ChangeLog
gas/aclocal.m4
gas/configure
gas/configure.ac
gprof/ChangeLog
gprof/aclocal.m4
gprof/configure
gprof/configure.ac
ld/ChangeLog
ld/aclocal.m4
ld/configure
ld/configure.ac
libctf/ChangeLog
libctf/aclocal.m4
libctf/configure
libctf/configure.ac
opcodes/ChangeLog
opcodes/aclocal.m4
opcodes/configure
opcodes/configure.ac