diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2025-01-06 12:20:00 +0100 |
---|---|---|
committer | Eric Botcazou <ebotcazou@adacore.com> | 2025-01-06 12:22:41 +0100 |
commit | 144ddb0cdfa7a09ccbaaea5ec72837346fbc1d8d (patch) | |
tree | b3a1ee49e4bb426ffe1f0bdf0457feeb42a5000e /gcc | |
parent | 72b273152f75a8622ea13d0fe95d6d2461615ba4 (diff) | |
download | gcc-144ddb0cdfa7a09ccbaaea5ec72837346fbc1d8d.zip gcc-144ddb0cdfa7a09ccbaaea5ec72837346fbc1d8d.tar.gz gcc-144ddb0cdfa7a09ccbaaea5ec72837346fbc1d8d.tar.bz2 |
Ada: fix spurious relinking of gnatbind for cross compilers
The problem has been introduced by r15-1881.
gcc/ada
PR ada/118247
* gcc-interface/Make-lang.in (GNATTOOLS_CROSS_MV): Copy gnatbind
instead of moving it.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/gcc-interface/Make-lang.in | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ada/gcc-interface/Make-lang.in b/gcc/ada/gcc-interface/Make-lang.in index 1d8f097..b0c568a 100644 --- a/gcc/ada/gcc-interface/Make-lang.in +++ b/gcc/ada/gcc-interface/Make-lang.in @@ -833,10 +833,14 @@ gnatlib gnatlib-sjlj gnatlib-zcx gnatlib-shared: force gnattools-cross-mv: $(GNATTOOLS_CROSS_MV) +# gnatbind$(exeext) is a prerequisite of the ada target and +# thus needs to be copied instead of moved. GNATTOOLS_CROSS_MV=\ - for tool in $(ADA_TOOLS) ; do \ - if [ -f $$tool$(exeext) ] ; \ - then \ + if [ -f gnatbind$(exeext) ] ; then \ + $(CP) gnatbind$(exeext) gnatbind-cross$(exeext); \ + fi; \ + for tool in $(filter-out gnatbind, $(ADA_TOOLS)) ; do \ + if [ -f $$tool$(exeext) ] ; then \ $(MV) $$tool$(exeext) $$tool-cross$(exeext); \ fi; \ done |