mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
When installing executables that were built using libtool, we are supposed to use $ libtool --mode-install <install-command> rather than the bare <install-command>. This is discussed ever so briefly in the "Installing executables" section of the GNU libtool documentation: https://www.gnu.org/software/libtool/manual/libtool.html So far this has not caused a problem with GNU libtool on the platforms that PHP supports, but there is an alternate libtool implementation called slibtool that stores wrappers at the locations where PHP is expecting the true executables to live. As a result, the wrappers (and not the executables) are installed when slibtool is used to build PHP. This is fixed by replacing, $(INSTALL) with $(LIBTOOL) --mode=install $(INSTALL) in the install-foo rules for the executables that are built with libtool. Closes GH-13674
13 lines
647 B
Makefile
13 lines
647 B
Makefile
cgi: $(SAPI_CGI_PATH)
|
|
|
|
$(SAPI_CGI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_FASTCGI_OBJS) $(PHP_CGI_OBJS)
|
|
$(BUILD_CGI)
|
|
|
|
install-cgi: $(SAPI_CGI_PATH)
|
|
@echo "Installing PHP CGI binary: $(INSTALL_ROOT)$(bindir)/"
|
|
@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
|
|
@$(LIBTOOL) --mode=install $(INSTALL) -m 0755 $(SAPI_CGI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php-cgi$(program_suffix)$(EXEEXT)
|
|
@echo "Installing PHP CGI man page: $(INSTALL_ROOT)$(mandir)/man1/"
|
|
@$(mkinstalldirs) $(INSTALL_ROOT)$(mandir)/man1
|
|
@$(INSTALL_DATA) sapi/cgi/php-cgi.1 $(INSTALL_ROOT)$(mandir)/man1/$(program_prefix)php-cgi$(program_suffix).1
|