]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
a68: install link from A68_INSTALL_NAME to A68_TARGET_INSTALL_NAME [PR algol68/122944]
authorJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 1 Dec 2025 21:53:59 +0000 (22:53 +0100)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 1 Dec 2025 22:52:29 +0000 (23:52 +0100)
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 <jemarch@gnu.org>
gcc/algol68/ChangeLog

PR algol68/122944
* Make-lang.in (algol68.install-common): Link
A68_TARGET_INSTALL_NAME in bindir.

gcc/algol68/Make-lang.in

index 11756f772627d868aca47ef02065773361c42cd9..78c5b52ffa0f9162c59eae57820eacf60f2395ad 100644 (file)
@@ -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)