flex: disable tests when cross compiling

When cross compiling we can't run the test executables
on the build machine
This commit is contained in:
Adam Boseley 2015-12-23 20:57:34 +10:00
parent bf9c16d4ac
commit e3068d7309

View File

@ -17,6 +17,12 @@ stdenv.mkDerivation rec {
'';
crossAttrs = {
# disable tests which can't run on build machine
postPatch = ''
substituteInPlace Makefile.in --replace "tests" " ";
'';
preConfigure = ''
export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes