Enable old pythons' wide builds

This commit is contained in:
Dario Bertini 2015-05-06 07:50:52 +01:00
parent 934d3c19fd
commit 086e801d51
No known key found for this signature in database
GPG Key ID: B002EFE5F9B7F7F4
3 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ let
C_INCLUDE_PATH = concatStringsSep ":" (map (p: "${p}/include") buildInputs);
LIBRARY_PATH = concatStringsSep ":" (map (p: "${p}/lib") buildInputs);
configureFlags = "--enable-shared --with-threads --enable-unicode";
configureFlags = "--enable-shared --with-threads --enable-unicode=ucs4";
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin "-msse2";

View File

@ -79,7 +79,7 @@ let
C_INCLUDE_PATH = concatStringsSep ":" (map (p: "${p}/include") buildInputs);
LIBRARY_PATH = concatStringsSep ":" (map (p: "${p}/lib") buildInputs);
configureFlags = "--enable-shared --with-threads --enable-unicode";
configureFlags = "--enable-shared --with-threads --enable-unicode=ucs4";
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin "-msse2";
DETERMINISTIC_BUILD = 1;

View File

@ -43,7 +43,7 @@ stdenv.mkDerivation {
done
${optionalString stdenv.isDarwin ''export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -msse2"''}
configureFlagsArray=( --enable-shared --with-threads
configureFlagsArray=( --enable-shared --with-threads --with-wide-unicode
CPPFLAGS="${concatStringsSep " " (map (p: "-I${p}/include") buildInputs)}"
LDFLAGS="${concatStringsSep " " (map (p: "-L${p}/lib") buildInputs)}"
LIBS="${optionalString (!stdenv.isDarwin) "-lcrypt"} ${optionalString (ncurses != null) "-lncurses"}"