]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix support of --enable-default-pie for cross Ada compiler
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 1 Apr 2025 22:15:20 +0000 (00:15 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 1 Apr 2025 22:18:41 +0000 (00:18 +0200)
gnattools/
PR ada/119440
PR ada/119571
* Makefile.in (TOOLS_FLAGS_TO_PASS_CROSS): Pass $(PICFLAG) under
CFLAGS and $(LD_PICFLAG) under LDFLAGS.

gnattools/Makefile.in

index 15e7b3509bd88b1ada4b25e6b5fafea22ec99c1e..996e600c196e846f1674f67f48103bdc23975d21 100644 (file)
@@ -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)" \