From b7e5a29602143b53267efcd9c8d5ecc78cd5a62f Mon Sep 17 00:00:00 2001
From: Tom Tromey <tom@tromey.com>
Date: Tue, 9 Jan 2024 06:25:26 -0700
Subject: Pass GUILE down to subdirectories

When I enable cgen rebuilding in the binutils-gdb tree, the default is
to run cgen using 'guile'.  However, on my host, guile is guile 2.2,
which doesn't work for me -- I have to use guile3.0.

This patch arranges to pass "GUILE" down to subdirectories, so I can
use 'make GUILE=guile3.0'.

	* Makefile.in: Rebuild.
	* Makefile.tpl (BASE_EXPORTS): Add GUILE.
	(GUILE): New variable.
	* Makefile.def (flags_to_pass): Add GUILE.
---
 Makefile.def | 1 +
 1 file changed, 1 insertion(+)

(limited to 'Makefile.def')

diff --git a/Makefile.def b/Makefile.def
index 3f8962c2803..b889020afc6 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -312,6 +312,7 @@ flags_to_pass = { flag= GNATBIND ; };
 flags_to_pass = { flag= GNATMAKE ; };
 flags_to_pass = { flag= GDC ; };
 flags_to_pass = { flag= GDCFLAGS ; };
+flags_to_pass = { flag= GUILE ; };
 
 // Target tools
 flags_to_pass = { flag= AR_FOR_TARGET ; };
-- 
cgit v1.2.3

