From ca92853163eca46b480fd0f6f6a38f4891fc33fd Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 4 Nov 2011 21:31:07 +0000 Subject: [PATCH] Make cross-buildable svn path=/nixpkgs/trunk/; revision=30238 --- pkgs/development/tools/parsing/flex/flex-2.5.35.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/tools/parsing/flex/flex-2.5.35.nix b/pkgs/development/tools/parsing/flex/flex-2.5.35.nix index ae68bb65d7b2..66ece227c924 100644 --- a/pkgs/development/tools/parsing/flex/flex-2.5.35.nix +++ b/pkgs/development/tools/parsing/flex/flex-2.5.35.nix @@ -13,6 +13,13 @@ stdenv.mkDerivation { buildInputs = [yacc]; propagatedBuildNativeInputs = [m4]; + crossAttrs = { + preConfigure = '' + export ac_cv_func_malloc_0_nonnull=yes + export ac_cv_func_realloc_0_nonnull=yes + ''; + }; + meta = { description = "A fast lexical analyser generator"; };