]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
sarif-replay: respect prefix and suffix during installation [PR117670]
authorDavid Malcolm <dmalcolm@redhat.com>
Fri, 24 Jan 2025 15:20:11 +0000 (10:20 -0500)
committerDavid Malcolm <dmalcolm@redhat.com>
Fri, 24 Jan 2025 15:20:11 +0000 (10:20 -0500)
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 <dmalcolm@redhat.com>
gcc/Makefile.in

index 51c25b06e081cad15ab25a91779967d026c54f29..a8e32e25cf54a1890f1edb6ada8d6129869373ef 100644 (file)
@@ -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