From 049dd97dd7e09a04a0492a6573fdc6a7645734b2 Mon Sep 17 00:00:00 2001
From: Iain Sandoe <iain@sandoe.co.uk>
Date: Sat, 4 Jul 2026 19:24:56 +0100
Subject: libgcc, Darwin: Fix missing prerequisite [PR123976].

r15-3802-gbdf41d627c13bc added a dependency on md-unwind-def.h to
unwind-dw2.h, which is included in unwind-dw2.c.  However the pre-
requisites in t-darwin-ehs were not updated.  Unfortunately, for
most normal builds (j >= 2) this gets hidden by satisfaction of
the dependency via an alterate path.

This fixes non-parallel builds.

	PR libgcc/123976

libgcc/ChangeLog:

	* config/t-darwin-ehs: Add md-unwind-def.h as a
	pre-requisite.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
(cherry picked from commit e365e5473a8a300a94c3c4c73b598bf57ae08ef9)
---
 libgcc/config/t-darwin-ehs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcc/config/t-darwin-ehs b/libgcc/config/t-darwin-ehs
index df46f8a65297..768678f25653 100644
--- libgcc/config/t-darwin-ehs
+++ libgcc/config/t-darwin-ehs
@@ -3,5 +3,5 @@
 
 LIBEHSOBJS = unwind-dw2_s.o unwind-dw2-fde-darwin_s.o unwind-c_s.o
 
-unwind-dw2_s.o: gthr-default.h md-unwind-support.h unwind.h
+unwind-dw2_s.o: gthr-default.h md-unwind-support.h md-unwind-def.h unwind.h
 $(LIBEHSOBJS): libgcc_tm.h
