xref: /OK3568_Linux_fs/buildroot/package/php/0003-configure-disable-the-phar-tool.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From 5ba6355e489f647c88ca48afbc75965468193181 Mon Sep 17 00:00:00 2001
2From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3Date: Tue, 9 Aug 2016 11:51:53 +0200
4Subject: [PATCH] configure: disable the 'phar' tool
5
6Disable the 'phar' command-line tool build/installation since it requires
7php to run and pack up phar itself in phar format. This would require
8a host-php instance and really probably nobody needs the phar tool
9on the target.
10
11Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
12[Gustavo: update for autoreconf/configure.in]
13Signed-off-by: Adam Duskett <aduskett@gmail.com>
14[Aduskett: update for 8.0.7]
15Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
16[Bernd: rebased for 7.4.10 & 7.4.13]
17---
18 configure.ac | 9 ++-------
19 1 file changed, 2 insertions(+), 7 deletions(-)
20
21diff --git a/configure.ac b/configure.ac
22index 0dfab302..6026fb66 100644
23--- a/configure.ac
24+++ b/configure.ac
25@@ -1423,13 +1423,8 @@ CFLAGS_CLEAN="$CFLAGS \$(PROF_FLAGS)"
26 CFLAGS="\$(CFLAGS_CLEAN) $standard_libtool_flag"
27 CXXFLAGS="$CXXFLAGS $standard_libtool_flag \$(PROF_FLAGS)"
28
29-if test "$PHP_PHAR" != "no" && test "$PHP_CLI" != "no"; then
30-  pharcmd=pharcmd
31-  pharcmd_install=install-pharcmd
32-else
33-  pharcmd=
34-  pharcmd_install=
35-fi;
36+pharcmd=
37+pharcmd_install=
38
39 all_targets="$lcov_target \$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
40 install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"
41--
422.14.3
43
44