Re-running configure without a subsequent make clean currently fails if
the set of objects has changed since the last run. This happens for
example if a different cryptolib was requested with --enable-cryptolib,
or if different libraries were detected by configure.
The problem is that error2.h is not updated according to the new
set of objects. Letting error2.h depend on Makefile should fix it,
because configure creates Makefile, so error2.h will be recreated
after reconfiguring.
$(hostbin_dir)/error2: error2.c | $(hostbin_dir)
@[ -z "$(Q)" ] || echo 'HCC $<'
$(Q) $(HOSTCC) -o $@ $<
-error2.h: $(hostbin_dir)/error2
+error2.h: $(hostbin_dir)/error2 Makefile
@[ -z "$(Q)" ] || echo 'ER2 $<'
@echo "$(object_executable_matrix)" | $< > $@