Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0f94eaf

Browse files
apply/fix some more NetBSD_DISABLED* usage in binutils.
this should fix issues seen with r/o source trees. note that the generated makefiles have weird bugs where the configure script edits the Makefile's AM_V_CCLD usage to insert "+ " and that makes the "@echo ..." that is AM_V_CCLD not be interpreted by make, but by shell and causing this to appear: 'sh: @echo: not found'. this only causes build output to be weird, not the build to be wrong.
1 parent 3db2dad commit 0f94eaf

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

external/gpl3/binutils.old/dist/bfd/doc/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,8 @@ bfd.h: $(BFD_H_DEP)
343343
echo "#endif" >> $@
344344

345345
bfdver.texi: $(srcdir)/Makefile.in
346+
@echo "NOT REBUILDING $@"
347+
NetBSD_DISABLED_bfdver.texi:
346348
@echo "creating $@"; \
347349
echo "@set VERSION $(VERSION)" > bfdver.texi; \
348350
if test -n "$(PKGVERSION)"; then \

external/gpl3/binutils.old/dist/bfd/doc/Makefile.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ clean-libtool:
539539

540540
bfd.info: bfd.texi $(bfd_TEXINFOS)
541541
@echo "NOT REBUILDING $@"
542-
NetBSD_DISABLED_bfd.info: bfd.texinfo $(bfd_TEXINFOS)
542+
NetBSD_DISABLED_bfd.info:
543543
$(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am$$$$" && \
544544
rm -rf $$backupdir && mkdir $$backupdir && \
545545
if ($(MAKEINFO) --version) >/dev/null 2>&1; then \
@@ -1155,6 +1155,8 @@ bfd.h: $(BFD_H_DEP)
11551155
echo "#endif" >> $@
11561156

11571157
bfdver.texi: $(srcdir)/Makefile.in
1158+
@echo "NOT REBUILDING $@"
1159+
NetBSD_DISABLED_bfdver.texi:
11581160
@echo "creating $@"; \
11591161
echo "@set VERSION $(VERSION)" > bfdver.texi; \
11601162
if test -n "$(PKGVERSION)"; then \

external/gpl3/binutils/dist/bfd/Makefile.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,8 @@ doc/$(am__dirstamp):
17811781
@: > doc/$(am__dirstamp)
17821782

17831783
doc/bfd.info: doc/bfd.texi $(doc_bfd_TEXINFOS)
1784+
@zecho "NOT REBUILDING $@"
1785+
NetBSD_DISABLED_doc/bfd.info:
17841786
@test -f doc/$(am__dirstamp) || $(MAKE) $(AM_MAKEFLAGS) doc/$(am__dirstamp)
17851787
$(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am$$$$" && \
17861788
rm -rf $$backupdir && mkdir $$backupdir && \
@@ -2520,6 +2522,8 @@ doc/bfdt.stamp: $(srcdir)/bfd.c $(srcdir)/doc/doc.str $(MKDOC) doc/$(am__dirstam
25202522
$(AM_V_GEN)$(REGEN_TEXI)
25212523

25222524
doc/bfdver.texi: $(srcdir)/Makefile.in
2525+
@echo "NOT REBUILDING $@"
2526+
NetBSD_DISABLED_bfdver.texi:
25232527
$(AM_V_GEN)\
25242528
$(MKDIR_P) $(@D); \
25252529
echo "@set VERSION $(VERSION)" > $@; \

external/gpl3/binutils/dist/bfd/doc/local.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,13 @@ REGEN_TEXI = \
125125
# We use bfdt.texi, rather than bfd.texi, to avoid conflicting with
126126
# bfd.texi on an 8.3 filesystem.
127127
%D%/bfdt.stamp: $(srcdir)/bfd.c $(srcdir)/%D%/doc.str $(MKDOC) %D%/$(am__dirstamp)
128+
@echo "NOT REBUILDING $@"
129+
NetBSD_DISABLED_bfdt.stamp:
128130
$(AM_V_GEN)$(REGEN_TEXI)
129131

130132
%D%/bfdver.texi: $(srcdir)/Makefile.in
133+
@echo "NOT REBUILDING $@"
134+
NetBSD_DISABLED_bfdver.texi:
131135
$(AM_V_GEN)\
132136
$(MKDIR_P) $(@D); \
133137
echo "@set VERSION $(VERSION)" > $@; \

external/gpl3/binutils/dist/ld/Makefile.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1664,7 +1664,7 @@ distclean-libtool:
16641664
16651665
ld.info: ld.texi $(ld_TEXINFOS)
16661666
@echo "NOT REBUILDING $@"
1667-
NetBSD_DISABLED_ld.info: ld.texinfo $(ld_TEXINFOS)
1667+
NetBSD_DISABLED_ld.info:
16681668
$(AM_V_MAKEINFO)restore=: && backupdir="$(am__leading_dot)am$$$$" && \
16691669
rm -rf $$backupdir && mkdir $$backupdir && \
16701670
if ($(MAKEINFO) --version) >/dev/null 2>&1; then \

0 commit comments

Comments
 (0)