https://gcc.gnu.org/g:70bc553e1b565d2e162894ea29a223b44e9133e3

commit r15-8689-g70bc553e1b565d2e162894ea29a223b44e9133e3
Author: Iain Sandoe <i...@sandoe.co.uk>
Date:   Sun Mar 23 11:45:17 2025 +0000

    toplevel, Makefile: Add missing CXX_FOR_TARGET export [PR88319].
    
    Actually, the issue is not local to the libitm case, it currently affects
    any 'cxx=true' top-level configured target library.
    
    The issue is a missing export of CXX_FOR_TARGET.
    
            PR libitm/88319
    
    ChangeLog:
    
            * Makefile.in: Regenerate.
            * Makefile.tpl: Add CXX_FOR_TARGET to NORMAL_TARGET_EXPORTS.
    
    Signed-off-by: Iain Sandoe <i...@sandoe.co.uk>

Diff:
---
 Makefile.in  | 1 +
 Makefile.tpl | 1 +
 2 files changed, 2 insertions(+)

diff --git a/Makefile.in b/Makefile.in
index 87880c62ad20..a5e6e11aece0 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -339,6 +339,7 @@ RAW_CXX_TARGET_EXPORTS = \
 
 NORMAL_TARGET_EXPORTS = \
        $(BASE_TARGET_EXPORTS) \
+       CXX_FOR_TARGET="$(CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
        CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
 
 # Where to find GMP
diff --git a/Makefile.tpl b/Makefile.tpl
index da38dca697ad..7dccf91ed8ec 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -342,6 +342,7 @@ RAW_CXX_TARGET_EXPORTS = \
 
 NORMAL_TARGET_EXPORTS = \
        $(BASE_TARGET_EXPORTS) \
+       CXX_FOR_TARGET="$(CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
        CXX="$(CXX_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $$TFLAGS"; export CXX;
 
 # Where to find GMP

Reply via email to