GNU MIG: Add the `noyywrap' option for Flex.
svn path=/nixpkgs/trunk/; revision=27494
This commit is contained in:
parent
7aa65babe8
commit
9055a9b803
@ -13,12 +13,12 @@ stdenv.mkDerivation {
|
|||||||
inherit rev;
|
inherit rev;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [ ./noyywrap.patch ];
|
||||||
|
|
||||||
buildInputs = [ autoconf automake flex bison machHeaders ];
|
buildInputs = [ autoconf automake flex bison machHeaders ];
|
||||||
|
|
||||||
preConfigure = "autoreconf -vfi";
|
preConfigure = "autoreconf -vfi";
|
||||||
|
|
||||||
configureFlags = [ "--build=i586-pc-gnu" ];
|
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
12
pkgs/os-specific/gnu/mig/noyywrap.patch
Normal file
12
pkgs/os-specific/gnu/mig/noyywrap.patch
Normal 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
|
Loading…
x
Reference in New Issue
Block a user