GNU MIG: Add the `noyywrap' option for Flex.

svn path=/nixpkgs/trunk/; revision=27494
This commit is contained in:
Ludovic Courtès 2011-06-18 16:36:17 +00:00
parent 7aa65babe8
commit 9055a9b803
2 changed files with 14 additions and 2 deletions

View File

@ -13,12 +13,12 @@ stdenv.mkDerivation {
inherit rev;
};
patches = [ ./noyywrap.patch ];
buildInputs = [ autoconf automake flex bison machHeaders ];
preConfigure = "autoreconf -vfi";
configureFlags = [ "--build=i586-pc-gnu" ];
doCheck = true;
meta = {

View File

@ -0,0 +1,12 @@
Fix undefined reference to `yywrap'.
diff --git a/lexxer.l b/lexxer.l
index 9725d0b..15264bc 100644
--- a/lexxer.l
+++ b/lexxer.l
@@ -1,4 +1,5 @@
%option nounput
+%option noyywrap
%k 10000
%n 5000