Skip to content
Permalink
Browse files

Fix the 64bit c++ patch for PHP5.3

  • Loading branch information...
c9s committed Mar 9, 2013
1 parent b3fbf3d commit 18ef766d0e013ee87ac7d86e338ebec89fbeb445
Showing with 3 additions and 5 deletions.
  1. +2 −4 src/PhpBrew/Builder.php
  2. +1 −1 src/PhpBrew/Command/InstallCommand.php
@@ -158,14 +158,12 @@ public function configure(\PhpBrew\Build $build)
$cmd->execute() !== false or die('Configure failed.');
// Then patch Makefile for PHP 5.3 on 64bit system.
// NOTE: it seems don't work.
/*
// Then patch Makefile for PHP 5.3.x on 64bit system.
if( Utils::support_64bit() && $build->compareVersion('5.4') == -1 ) {
$this->logger->info("===> Applying patch file for php5.3.x on 64bit machine.");
system('sed -i \'/^BUILD_/ s/\$(CC)/\$(CXX)/g\' Makefile');
system('sed -i \'/EXTRA_LIBS = /s|$| -lstdc++|\' Makefile');
}
*/
}
public function build()
@@ -113,7 +113,7 @@ public function execute($version)
$builder->logger = $this->logger;
$builder->options = $this->options;
$this->logger->debug( 'Build Directory: ' . $buildDir . DIRECTORY_SEPARATOR . $targetDir );
$this->logger->debug( 'Build Directory: ' . realpath($targetDir) );
foreach( $variantInfo['enabled_variants'] as $name => $value ) {
$build->enableVariant($name, $value);

0 comments on commit 18ef766

Please sign in to comment.
You can’t perform that action at this time.