summaryrefslogtreecommitdiff
path: root/external/gpl3/binutils
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2022-12-31 05:44:25 +0000
committermrg <mrg@NetBSD.org>2022-12-31 05:44:25 +0000
commitd10901c35bc3ee768fdeb8e0e349b59108e4f831 (patch)
tree52e397f4c897c5ffbb9ddbadead039e2d30c0220 /external/gpl3/binutils
parentee059f8a0824b894411ee31baa4003b03c8bd50d (diff)
fix the binutils build with read-only source trees
don't play with m68k-parse.c in tools/binutils/Makefile but disable the rules that rebuild it so we always use the upstream version, using the standard "NetBSD_DISABLED" method. this was necessary to build on linux in 2014 (which may or may not still ne necessary), but it also avoids triggering rebuild rules based upon the timestamps on .y vs .c. tested with amiga, amd64, and i386 "build.sh tools" builds.
Diffstat (limited to 'external/gpl3/binutils')
-rw-r--r--external/gpl3/binutils/dist/gas/Makefile.am2
-rw-r--r--external/gpl3/binutils/dist/gas/Makefile.in2
2 files changed, 4 insertions, 0 deletions
diff --git a/external/gpl3/binutils/dist/gas/Makefile.am b/external/gpl3/binutils/dist/gas/Makefile.am
index bd597398671..7e248d3d88d 100644
--- a/external/gpl3/binutils/dist/gas/Makefile.am
+++ b/external/gpl3/binutils/dist/gas/Makefile.am
@@ -445,6 +445,8 @@ development.exp: $(BFDDIR)/development.sh
EXTRA_as_new_SOURCES += config/m68k-parse.y
config/m68k-parse.c: $(srcdir)/config/m68k-parse.y
+ @echo "NOT REBUILDING $@"
+NetBSD_DISABLED_config_m68k-parse.c:
$(SHELL) $(YLWRAP) $(srcdir)/config/m68k-parse.y y.tab.c $@ -- $(YACCCOMPILE)
config/m68k-parse.h: config/m68k-parse.c
@true
diff --git a/external/gpl3/binutils/dist/gas/Makefile.in b/external/gpl3/binutils/dist/gas/Makefile.in
index 8bc4d2fda41..780f5cf2a67 100644
--- a/external/gpl3/binutils/dist/gas/Makefile.in
+++ b/external/gpl3/binutils/dist/gas/Makefile.in
@@ -2048,6 +2048,8 @@ development.exp: $(BFDDIR)/development.sh
$(EGREP) "(development|experimental)=" $(BFDDIR)/development.sh \
| $(AWK) -F= '{ print "set " $$1 " " $$2 }' > $@
config/m68k-parse.c: $(srcdir)/config/m68k-parse.y
+ @echo "NOT REBUILDING $@"
+NetBSD_DISABLED_config_m68k-parse.c:
$(SHELL) $(YLWRAP) $(srcdir)/config/m68k-parse.y y.tab.c $@ -- $(YACCCOMPILE)
config/m68k-parse.h: config/m68k-parse.c
@true