diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2025-03-25 18:11:08 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2025-03-25 18:13:39 +0100 |
commit | 7bec4570301c43ab948aca624d4cd7a3b33d65a1 (patch) | |
tree | c94d2eaebd8e908afbab718c293cc0aba5491b5f /gcc/fortran | |
parent | 525d4a10302113b3cce9b4e5420767f0a2f5624e (diff) | |
download | gcc-7bec4570301c43ab948aca624d4cd7a3b33d65a1.zip gcc-7bec4570301c43ab948aca624d4cd7a3b33d65a1.tar.gz gcc-7bec4570301c43ab948aca624d4cd7a3b33d65a1.tar.bz2 |
Add support of --enable-host-pie to the native Ada compiler
gcc/ada/
PR ada/119440
* gcc-interface/Make-lang.in (GCC_LINK): Filter out -pie in stage 1
(GCC_LLINK): Likewise.
* gcc-interface/Makefile.in (COMPILER): Delete and replace by CC.
(COMPILER_FLAGS): Delete.
(ALL_COMPILERFLAGS): Delete and replace by ALL_CFLAGS.
(ALL_ADAFLAGS): Move around.
(enable_host_pie): New substituted variable.
(LD_PICFLAG): Likewise. Do not add it to TOOLS_LIBS.
(LIBIBERTY): Test enable_host_pie.
(LIBGNAT): Likewise and use libgnat_pic.a if yes.
(TOOLS_FLAGS_TO_PASS): Pass $(PICFLAG) under CFLAGS & $(LD_PICFLAG)
under LDFLAGS. Also pass through ADA_CFLAGS.
(common-tools): Add $(ALL_CFLAGS) $(ADA_CFLAGS) to the --GCC string
of $(GNATLINK) commands.
(../../gnatdll$(exeext)): Likewise.
(gnatmake-re): Likewise.
(gnatlink-re): Likewise.
(gnatlib-shared-dual): Remove all the object files at the end.
gnattools/
PR ada/119440
* configure.ac (host-pie): New switch.
(host-bind-now): Likewise.
Substitute PICFLAG and LD_PICFLAG.
* configure: Regenerate.
* Makefile.in (PICFLAG): New substituted variable.
(LD_PICFLAG): Likewise.
(TOOLS_FLAGS_TO_PASS): Pass $(PICFLAG) under CFLAGS & $(LD_PICFLAG)
under LDFLAGS. Do not pass -I- under ADA_INCLUDES.
(TOOLS_FLAGS_TO_PASS_RE): Likewise.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions