# Things which must be built before building libgcc2.a.
# Some targets override this to stmp-int-hdrs
+# Use of fixproto also depends on this.
LIBGCC2_DEPS =
# Enquire target (This is a variable so that a target can choose not to
patch-header.o: xsys-protos.h
-stmp-fixproto: patch-header xsys-protos.h fixproto
+# LIBGCC2_DEPS is to make sure fixincludes has already finished.
+stmp-fixproto: patch-header xsys-protos.h fixproto $(LIBGCC2_DEPS)
CPP="$(GCC_FOR_TARGET) -E"; export CPP; \
${srcdir}/fixproto include include $(SYSTEM_HEADER_DIR)
touch stmp-fixproto