From 94c45da4b9989f96f9de941b24b3b1dedfd8b92c Mon Sep 17 00:00:00 2001 From: Nathan Porter Date: Thu, 28 May 2020 18:46:47 -0700 Subject: [PATCH] Respect --program-suffix when installing phar Currently ./configure --enable-phar --program-suffix="7.4" will result in binaries named php7.4 and phar but should instead result in php7.4 and phar7.4 --- ext/phar/Makefile.frag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/phar/Makefile.frag b/ext/phar/Makefile.frag index 6442f3349332e..6f76ec7dfa125 100644 --- a/ext/phar/Makefile.frag +++ b/ext/phar/Makefile.frag @@ -42,9 +42,9 @@ $(builddir)/phar.phar: $(builddir)/phar.php $(builddir)/phar/phar.inc $(srcdir)/ install-pharcmd: pharcmd -@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir) - $(INSTALL) $(builddir)/phar.phar $(INSTALL_ROOT)$(bindir) + $(INSTALL) $(builddir)/phar.phar $(INSTALL_ROOT)$(bindir)/phar.phar$(program_suffix) -@rm -f $(INSTALL_ROOT)$(bindir)/phar - $(LN_S) -f phar.phar $(INSTALL_ROOT)$(bindir)/phar + $(LN_S) -f phar.phar$(program_suffix) $(INSTALL_ROOT)$(bindir)/phar$(program_suffix) @$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1 @$(INSTALL_DATA) $(builddir)/phar.1 $(INSTALL_ROOT)$(mandir)/man1/phar.1 @$(INSTALL_DATA) $(builddir)/phar.phar.1 $(INSTALL_ROOT)$(mandir)/man1/phar.phar.1