From d095fbb13e4e91a336ef6af6721ef8012b0a928c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 6 Oct 2010 10:29:45 +0000 Subject: pkgs/development/libraries/pcre: fixed build on Darwin The gcc version used on Darwin crashes while compiling the C++ interface of PCRE. Building that code with -O0 avoids the crash. svn path=/nixpkgs/trunk/; revision=24107 --- pkgs/development/libraries/pcre/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkgs/development/libraries/pcre') diff --git a/pkgs/development/libraries/pcre/default.nix b/pkgs/development/libraries/pcre/default.nix index fba3844bf8e45..1dd860aeaeb12 100644 --- a/pkgs/development/libraries/pcre/default.nix +++ b/pkgs/development/libraries/pcre/default.nix @@ -8,10 +8,14 @@ stdenv.mkDerivation { sha256 = "1zsqk352mx2zklf9bgpg9d88ckfdssbbbiyslhrycfckw8m3qpvr"; }; + # The compiler on Darwin crashes with an internal error while building the + # C++ interface. Disabling optimizations on that platform remedies the + # problem. In case we ever update the Darwin GCC version, the exception for + # that platform ought to be removed. configureFlags = '' ${if unicodeSupport then "--enable-unicode-properties" else ""} ${if !cplusplusSupport then "--disable-cpp" else ""} - ''; + '' + stdenv.lib.optionalString stdenv.isDarwin "CXXFLAGS=-O0"; meta = { homepage = "http://www.pcre.org/"; -- cgit 1.4.1