php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch 0001-Fix-CGI-make-install-when-CLI-was-not-built.patch for Compile Failure Bug #61345

Patch version 2012-08-16 19:01 UTC

Return to Bug #61345 | Download this patch
Patch Revisions:

Developer: m.heimpold@web.de

From 49421c5e4c17f9a62692a75f18396af393c53881 Mon Sep 17 00:00:00 2001
From: Michael Heimpold <mhei@heimpold.de>
Date: Thu, 16 Aug 2012 20:49:35 +0200
Subject: [PATCH] Fix CGI - make install when CLI was not built

Signed-off-by: Oliver Metz <oliver.metz@gmx.de>

---
 sapi/cgi/Makefile.frag |    1 +
 1 file changed, 1 insertion(+)

diff --git a/sapi/cgi/Makefile.frag b/sapi/cgi/Makefile.frag
index 505119e..26350e1 100644
--- a/sapi/cgi/Makefile.frag
+++ b/sapi/cgi/Makefile.frag
@@ -5,5 +5,6 @@ $(SAPI_CGI_PATH): $(PHP_GLOBAL_OBJS) $(PHP_BINARY_OBJS) $(PHP_CGI_OBJS)
 
 install-cgi: $(SAPI_CGI_PATH)
 	@echo "Installing PHP CGI binary:        $(INSTALL_ROOT)$(bindir)/"
+	@$(mkinstalldirs) $(INSTALL_ROOT)$(bindir)
 	@$(INSTALL) -m 0755 $(SAPI_CGI_PATH) $(INSTALL_ROOT)$(bindir)/$(program_prefix)php-cgi$(program_suffix)$(EXEEXT)
 
-- 
1.7.9.5

 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sun Apr 20 19:01:51 2014 UTC