https://gcc.gnu.org/g:358f7a954584ccefeef41390852d002c60ec11c0

commit r15-9139-g358f7a954584ccefeef41390852d002c60ec11c0
Author: Eric Botcazou <ebotca...@adacore.com>
Date:   Wed Apr 2 00:15:20 2025 +0200

    Fix support of --enable-default-pie for cross Ada compiler
    
    gnattools/
            PR ada/119440
            PR ada/119571
            * Makefile.in (TOOLS_FLAGS_TO_PASS_CROSS): Pass $(PICFLAG) under
            CFLAGS and $(LD_PICFLAG) under LDFLAGS.

Diff:
---
 gnattools/Makefile.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnattools/Makefile.in b/gnattools/Makefile.in
index 15e7b3509bd8..996e600c196e 100644
--- a/gnattools/Makefile.in
+++ b/gnattools/Makefile.in
@@ -134,8 +134,8 @@ RTS_DIR:=$(strip $(subst \,/,$(shell $(GNATLS_FOR_HOST) -v 
| grep adalib )))
 TOOLS_FLAGS_TO_PASS_CROSS= \
        "CC=$(CC)" \
        "CXX=$(CXX)" \
-       "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)" \
-       "LDFLAGS=$(LDFLAGS)" \
+       "CFLAGS=$(CFLAGS) $(WARN_CFLAGS) $(PICFLAG)" \
+       "LDFLAGS=$(LDFLAGS) $(LD_PICFLAG)" \
        "ADAFLAGS=$(ADAFLAGS)"  \
        "ADA_CFLAGS=$(ADA_CFLAGS)" \
        "INCLUDES=$(INCLUDES_FOR_SUBDIR)" \

Reply via email to