Merge pull request #309959 from avnik/avnik/m2crypto-cross-fix
python-m2crypto: fix cross-compilation
This commit is contained in:
commit
3645b258dd
|
@ -32,10 +32,14 @@ buildPythonPackage rec {
|
|||
parameterized
|
||||
];
|
||||
|
||||
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin (toString [
|
||||
"-Wno-error=implicit-function-declaration"
|
||||
"-Wno-error=incompatible-pointer-types"
|
||||
]);
|
||||
env = {
|
||||
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin (toString [
|
||||
"-Wno-error=implicit-function-declaration"
|
||||
"-Wno-error=incompatible-pointer-types"
|
||||
]);
|
||||
} // lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform) {
|
||||
CPP = "${stdenv.cc.targetPrefix}cpp";
|
||||
};
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
|
|
Loading…
Reference in New Issue