Successfully bootstrapped & regrtested on x86_64-pc-linux-gnu.
Pushed to trunk as r15-7178-gd49667be2c2953.

gcc/ChangeLog:
        PR sarif-replay/117670
        * Makefile.in (SARIF_REPLAY_INSTALL_NAME): New.
        (install-libgdiagnostics): Use it,and exeext, rather than just
        sarif-replay.

Signed-off-by: David Malcolm <dmalc...@redhat.com>
---
 gcc/Makefile.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 51c25b06e081..a8e32e25cf54 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -4215,9 +4215,10 @@ libgdiagnostics.install-common: installdirs 
libgdiagnostics.install-headers
 endif
 endif
 
+SARIF_REPLAY_INSTALL_NAME := $(shell echo sarif-replay|sed 
'$(program_transform_name)')
 install-libgdiagnostics: libgdiagnostics.install-common sarif-replay
-       -rm -f $(DESTDIR)$(bindir)/sarif-replay
-       -$(INSTALL_PROGRAM) sarif-replay $(DESTDIR)$(bindir)/sarif-replay
+       -rm -f $(DESTDIR)$(bindir)/$(SARIF_REPLAY_INSTALL_NAME)$(exeext)
+       -$(INSTALL_PROGRAM) sarif-replay 
$(DESTDIR)$(bindir)/$(SARIF_REPLAY_INSTALL_NAME)$(exeext)
 
 # Install the info files.
 # $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
-- 
2.26.3

Reply via email to