diff options
-rw-r--r-- | 2.25/0001-binutils-2.25aosp-flex-buildfix.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/2.25/0001-binutils-2.25aosp-flex-buildfix.patch b/2.25/0001-binutils-2.25aosp-flex-buildfix.patch new file mode 100644 index 0000000..f70ed8e --- /dev/null +++ b/2.25/0001-binutils-2.25aosp-flex-buildfix.patch @@ -0,0 +1,55 @@ +--- binutils-2.25/binutils/arlex.l.omv~ 2017-05-09 15:41:48.877545033 +0200 ++++ binutils-2.25/binutils/arlex.l 2017-05-09 15:42:00.854659666 +0200 +@@ -1,4 +1,4 @@ +-%option noinput nounput ++%option noinput nounput noyywrap + + %{ + /* arlex.l - Strange script language lexer */ +@@ -88,7 +88,3 @@ int linenumber; + "\n" { linenumber ++; return NEWLINE; } + + %% +-#ifndef yywrap +-/* Needed for lex, though not flex. */ +-int yywrap(void) { return 1; } +-#endif +--- binutils-2.25/binutils/syslex.l.omv~ 2017-05-09 15:41:07.085145065 +0200 ++++ binutils-2.25/binutils/syslex.l 2017-05-09 15:41:34.285405377 +0200 +@@ -1,4 +1,4 @@ +-%option noinput nounput ++%option noinput nounput noyywrap + + %{ + /* Copyright (C) 2001-2014 Free Software Foundation, Inc. +@@ -36,10 +36,6 @@ + #define YY_NO_UNPUT + #endif + +-#ifndef yywrap +-static int yywrap (void) { return 1; } +-#endif +- + extern int yylex (void); + %} + %% +--- binutils-2.25/ld/ldlex.l.omv~ 2017-05-09 15:42:33.119968491 +0200 ++++ binutils-2.25/ld/ldlex.l 2017-05-09 15:42:45.196084082 +0200 +@@ -1,4 +1,4 @@ +-%option nounput ++%option nounput noyywrap + + %{ + +@@ -86,11 +86,6 @@ static void lex_warn_invalid (char *wher + VERS_NODE a node within a Sun style mapfile + */ + #define RTOKEN(x) { yylval.token = x; return x; } +- +-/* Some versions of flex want this. */ +-#ifndef yywrap +-int yywrap (void) { return 1; } +-#endif + %} + + %a 4000 |