pcre/cross: Enable support for winpthreads.
That way we're able to build with the JIT compiler enabled. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
44cfba7950
commit
d0142e9b09
@ -1,4 +1,8 @@
|
|||||||
{ stdenv, fetchurl, unicodeSupport ? true, cplusplusSupport ? true }:
|
{ stdenv, fetchurl, unicodeSupport ? true, cplusplusSupport ? true
|
||||||
|
, windows ? null
|
||||||
|
}:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "pcre-8.34";
|
name = "pcre-8.34";
|
||||||
@ -16,12 +20,16 @@ stdenv.mkDerivation rec {
|
|||||||
--enable-jit
|
--enable-jit
|
||||||
${if unicodeSupport then "--enable-unicode-properties" else ""}
|
${if unicodeSupport then "--enable-unicode-properties" else ""}
|
||||||
${if !cplusplusSupport then "--disable-cpp" else ""}
|
${if !cplusplusSupport then "--disable-cpp" else ""}
|
||||||
'' + stdenv.lib.optionalString stdenv.isDarwin "CXXFLAGS=-O0";
|
'' + optionalString stdenv.isDarwin "CXXFLAGS=-O0";
|
||||||
|
|
||||||
doCheck = with stdenv; !(isCygwin || isFreeBSD);
|
doCheck = with stdenv; !(isCygwin || isFreeBSD);
|
||||||
# XXX: test failure on Cygwin
|
# XXX: test failure on Cygwin
|
||||||
# we are running out of stack on both freeBSDs on Hydra
|
# we are running out of stack on both freeBSDs on Hydra
|
||||||
|
|
||||||
|
crossAttrs = optionalAttrs (stdenv.cross.config == "x86_64-w64-mingw32") {
|
||||||
|
buildInputs = [ windows.mingw_w64_pthreads.crossDrv ];
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://www.pcre.org/";
|
homepage = "http://www.pcre.org/";
|
||||||
description = "A library for Perl Compatible Regular Expressions";
|
description = "A library for Perl Compatible Regular Expressions";
|
||||||
@ -35,7 +43,7 @@ stdenv.mkDerivation rec {
|
|||||||
PCRE library is free, even for building proprietary software.
|
PCRE library is free, even for building proprietary software.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = [ stdenv.lib.maintainers.simons ];
|
maintainers = [ maintainers.simons ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user