https://gcc.gnu.org/g:a0456f1b7176e1f5174a6a25e2a14a63baa9af72

commit r16-5808-ga0456f1b7176e1f5174a6a25e2a14a63baa9af72
Author: Jose E. Marchesi <[email protected]>
Date:   Mon Dec 1 22:53:59 2025 +0100

    a68: install link from A68_INSTALL_NAME to A68_TARGET_INSTALL_NAME [PR 
algol68/122944]
    
    After bootstrapping gcc 16-20251130, configured with
      --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu 
--target=x86_64-pc-linux-gnu \
      --prefix=/arch/x86_64-linux-gnu/gnu-inst-gcc/$version \
      --enable-shared --enable-nls --enable-threads=posix --enable-__cxa_atexit 
\
      --with-multilib-list=m64 \
      --with-as=/arch/x86_64-linux-gnu/gnu-inst-binutils/2.38/bin/as \
      --with-ld=/arch/x86_64-linux-gnu/gnu-inst-binutils/2.38/bin/ld \
      --with-gmp=/arch/x86_64-linux-gnu/gnu-inst-gcc/$version \
      --with-mpfr=/arch/x86_64-linux-gnu/gnu-inst-gcc/$version \
      --with-mpc=/arch/x86_64-linux-gnu/gnu-inst-gcc/$version \
      --with-isl=/arch/x86_64-linux-gnu/gnu-inst-gcc/$version \
      
--enable-languages=c,c++,objc,obj-c++,lto,jit,fortran,ada,go,d,m2,algol68,cobol 
\
      --enable-host-shared
    then "make" (takes 8 hours) and "make install" (takes 8 minutes),
    the bin/ directory contains the programs
      gcc-ar, gcc-nm, gcc-ranlib,
      c++, g++, gcc, gccgo, gcobc, gcobol, gdc, gfortran, gm2
    both as <program> and <target>-<program>. However, ga68 is only
    present without the '<target>-' prefix.
    
    This patch fixes this.
    
    Signed-off-by: Jose E. Marchesi <[email protected]>
    
    gcc/algol68/ChangeLog
    
            PR algol68/122944
            * Make-lang.in (algol68.install-common): Link
            A68_TARGET_INSTALL_NAME in bindir.

Diff:
---
 gcc/algol68/Make-lang.in | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gcc/algol68/Make-lang.in b/gcc/algol68/Make-lang.in
index 11756f772627..78c5b52ffa0f 100644
--- a/gcc/algol68/Make-lang.in
+++ b/gcc/algol68/Make-lang.in
@@ -223,6 +223,15 @@ selftest-algol68:
 algol68.install-common: installdirs
        -rm -f $(DESTDIR)$(bindir)/$(A68_INSTALL_NAME)$(exeext)
        $(INSTALL_PROGRAM) ga68$(exeext) 
$(DESTDIR)$(bindir)/$(A68_INSTALL_NAME)$(exeext)
+       -if test -f a681$(exeext); then \
+         if test -f ga68-cross$(exeext); then \
+           :; \
+         else \
+           rm -f $(DESTDIR)$(bindir)/$(A68_TARGET_INSTALL_NAME)$(exeext); \
+           ( cd $(DESTDIR)$(bindir) && \
+             $(LN) $(A68_INSTALL_NAME)$(exeext) 
$(A68_TARGET_INSTALL_NAME)$(exeext) ); \
+         fi; \
+       fi
 
 algol68.install-man: $(DESTDIR)$(man1dir)/$(A68_INSTALL_NAME)$(man1ext)

Reply via email to