flex: fix cross compilation
This commit is contained in:
parent
4e09c26ea1
commit
9ad03b1ed9
|
@ -34,8 +34,8 @@ stdenv.mkDerivation rec {
|
||||||
propagatedBuildInputs = [ m4 ];
|
propagatedBuildInputs = [ m4 ];
|
||||||
|
|
||||||
preConfigure = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
preConfigure = lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||||
"ac_cv_func_malloc_0_nonnull=yes"
|
"export ac_cv_func_malloc_0_nonnull=yes"
|
||||||
"ac_cv_func_realloc_0_nonnull=yes"
|
"export ac_cv_func_realloc_0_nonnull=yes"
|
||||||
];
|
];
|
||||||
|
|
||||||
postConfigure = lib.optionalString (stdenv.isDarwin || stdenv.isCygwin) ''
|
postConfigure = lib.optionalString (stdenv.isDarwin || stdenv.isCygwin) ''
|
||||||
|
|
Loading…
Reference in New Issue