From 13080750d4ea60df8bb3d9a52c8038f5da5a6e07 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Thu, 7 May 2009 05:45:40 +0000 Subject: [PATCH] only use -O1 for php. Using -O2 causes some annoying segfaults. See comment svn path=/nixpkgs/trunk/; revision=15482 --- pkgs/development/interpreters/php_configurable/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/interpreters/php_configurable/default.nix b/pkgs/development/interpreters/php_configurable/default.nix index e16f2829f8ac..dc9aa0ddeddf 100644 --- a/pkgs/development/interpreters/php_configurable/default.nix +++ b/pkgs/development/interpreters/php_configurable/default.nix @@ -122,11 +122,13 @@ composableDerivation {} ( fixed : { gdSupport = true; }; + # only -O1 configurePhase = '' iniFile=$out/etc/$name.ini [[ -z "$libxml2" ]] || export PATH=$PATH:$libxml2/bin ./configure --with-config-file-scan-dir=/etc --with-config-file-path=$out/etc --prefix=$out $configureFlags echo configurePhase end + sed -e 's/-O2/-O1/g' -i Makefile # http://bugs.php.net/bug.php?id=47730&edit=3 ''; installPhase = ''