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

commit r15-7178-gd49667be2c2953c33086a02cac8729a550990c8c
Author: David Malcolm <dmalc...@redhat.com>
Date:   Fri Jan 24 10:20:11 2025 -0500

    sarif-replay: respect prefix and suffix during installation [PR117670]
    
    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>

Diff:
---
 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

Reply via email to