diff --git a/gold/Makefile.am b/gold/Makefile.am index 199c75a363f..d01ab813239 100644 --- a/gold/Makefile.am +++ b/gold/Makefile.am @@ -119,6 +119,8 @@ ld_new_LDADD = $(ldadd_var) $(LIBOBJS) EXTRA_ld_new_SOURCES = $(TARGETSOURCES) # Use an explicit dependency for the bison generated header file. +expression.$(OBJEXT): yyscript.h +script-sections.$(OBJEXT): yyscript.h script.$(OBJEXT): yyscript.h # We have to build libgold.a before we run the tests. diff --git a/gold/Makefile.in b/gold/Makefile.in index 512345e469d..7396895a3b5 100644 --- a/gold/Makefile.in +++ b/gold/Makefile.in @@ -1014,6 +1014,8 @@ uninstall-info: uninstall-info-recursive # Use an explicit dependency for the bison generated header file. +expression.$(OBJEXT): yyscript.h +script-sections.$(OBJEXT): yyscript.h script.$(OBJEXT): yyscript.h # We have to build libgold.a before we run the tests.