diff --git a/pkgs/development/tools/parsing/flex/2.5.39.nix b/pkgs/development/tools/parsing/flex/2.5.39.nix index c5337d647de3..f12f89f6e24c 100644 --- a/pkgs/development/tools/parsing/flex/2.5.39.nix +++ b/pkgs/development/tools/parsing/flex/2.5.39.nix @@ -12,6 +12,10 @@ stdenv.mkDerivation { propagatedNativeBuildInputs = [ m4 ]; + postConfigure = stdenv.lib.optionalString stdenv.isDarwin '' + sed -i Makefile -e 's/-no-undefined//;' + ''; + crossAttrs = { preConfigure = '' export ac_cv_func_malloc_0_nonnull=yes