mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
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
This commit is contained in:
parent
5d962bc1b2
commit
d095fbb13e
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user