Commit: 9a4adf7f7ae8e2fa4aa2f96e52e5466efdde0951 Author: Anatol Belski <[email protected]> Mon, 5 Dec 2016 20:09:04 +0100 Parents: bbcca471a6663e931b8366fd3b40fb75636ab3e3 Branches: pecl_legacy
Link: http://git.php.net/?p=web/rmtools.git;a=commitdiff;h=9a4adf7f7ae8e2fa4aa2f96e52e5466efdde0951 Log: add library bin path to the build path, some bins from there can be used Changed paths: M client/include/PeclBuildVC.php M client/include/PeclExt.php Diff: diff --git a/client/include/PeclBuildVC.php b/client/include/PeclBuildVC.php index e4e670b..c0328e7 100644 --- a/client/include/PeclBuildVC.php +++ b/client/include/PeclBuildVC.php @@ -85,6 +85,11 @@ class PeclBuildVC { $this->env = $env; } + function addPath($path) + { + $this->env["PATH"] = $path . ";" . $this->env["PATH"]; + } + function setSourceDir($src_dir) { $this->build_dir = $src_dir; diff --git a/client/include/PeclExt.php b/client/include/PeclExt.php index 6f33805..43a6426 100644 --- a/client/include/PeclExt.php +++ b/client/include/PeclExt.php @@ -424,6 +424,11 @@ class PeclExt $extra_inc[] = $dir; } } + + $some_lib_bin_path = str_replace("/", "\\", $lib_path . DIRECTORY_SEPARATOR . 'bin'); + if (file_exists($some_lib_bin_path)) { + $this->build->addPath($some_lib_bin_path); + } } if (!empty($extra_lib)) { -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
