Last active
October 19, 2016 03:07
-
-
Save mt8/3aaef4327451de697883a68935e1f04c to your computer and use it in GitHub Desktop.
phpenv + php-build で libphp5.so をapatcheモジュールにコピーしないためのパッチ v0.11.0dev対応
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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