diff options
author | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2017-05-09 15:44:01 +0200 |
---|---|---|
committer | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2017-05-09 15:44:01 +0200 |
commit | 966d6923a6041439b8baf4a07c5823596a8cf97c (patch) | |
tree | 00f7386f08b563800251bf7ae130879505847b06 | |
parent | a3f4b6a82a778af79215b852ad5403bd7b6e2c17 (diff) | |
download | binutils-patches-master.tar.gz |
Change-Id: Ia7c596c12db45901be6fedb6d1e78af2b79c6b40
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
-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 |