Skip to content

Commit ca7dcb8

Browse files
n8mannikic
authored andcommitted
Respect --program-prefix/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 Closes GH-5650.
1 parent d65c853 commit ca7dcb8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/phar/Makefile.frag

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ $(builddir)/phar.phar: $(builddir)/phar.php $(builddir)/phar/phar.inc $(srcdir)/
4242

4343
install-pharcmd: pharcmd
4444
-@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
45-
$(INSTALL) $(builddir)/phar.phar $(INSTALL_ROOT)$(bindir)
46-
-@rm -f $(INSTALL_ROOT)$(bindir)/phar
47-
$(LN_S) -f phar.phar $(INSTALL_ROOT)$(bindir)/phar
45+
$(INSTALL) $(builddir)/phar.phar $(INSTALL_ROOT)$(bindir)/$(program_prefix)phar$(program_suffix).phar
46+
-@rm -f $(INSTALL_ROOT)$(bindir)/$(program_prefix)phar$(program_suffix)
47+
$(LN_S) -f $(program_prefix)phar$(program_suffix).phar $(INSTALL_ROOT)$(bindir)/$(program_prefix)phar$(program_suffix)
4848
@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
49-
@$(INSTALL_DATA) $(builddir)/phar.1 $(INSTALL_ROOT)$(mandir)/man1/phar.1
50-
@$(INSTALL_DATA) $(builddir)/phar.phar.1 $(INSTALL_ROOT)$(mandir)/man1/phar.phar.1
49+
@$(INSTALL_DATA) $(builddir)/phar.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)phar$(program_suffix).1
50+
@$(INSTALL_DATA) $(builddir)/phar.phar.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)phar$(program_suffix).phar.1

0 commit comments

Comments
 (0)