Skip to content

Instantly share code, notes, and snippets.

@mt8
Last active October 19, 2016 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mt8/3aaef4327451de697883a68935e1f04c to your computer and use it in GitHub Desktop.
Save mt8/3aaef4327451de697883a68935e1f04c to your computer and use it in GitHub Desktop.
phpenv + php-build で libphp5.so をapatcheモジュールにコピーしないためのパッチ v0.11.0dev対応
diff --git bin/php-build bin/php-build
index 273a11a..60fe31a 100755
--- bin/php-build
+++ bin/php-build
@@ -334,6 +334,10 @@ function build_package() {
cd "$source_path"
{
+ if which apxs > /dev/null 2>&1; then
+ _LIBEXECDIR=`apxs -q LIBEXECDIR`
+ sed -i -e "s|LIBEXECDIR='¥$(INSTALL_ROOT)$_LIBEXECDIR'|LIBEXECDIR=$PREFIX/libexec|" $TMP/source/$DEFINITION/Makefile
+ fi
make $PHP_BUILD_EXTRA_MAKE_ARGUMENTS
make install
if [ "$PHP_BUILD_KEEP_OBJECT_FILES" == "off" ]; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment