From df4febc60037a1f357414667ff07498cf225c22e Mon Sep 17 00:00:00 2001 From: liuzhensong Date: Tue, 30 Aug 2022 11:53:15 +0800 Subject: [PATCH] LoongArch: Fix redefinition of "PACKAGE". MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Running configure and make in binutils-gdb. $ ./configure $ make In file included from ./as.h:37, from ./config/loongarch-lex.l:21, from config/loongarch-lex-wrapper.c:20: ./config.h:206: error: “PACKAGE” redefined [-Werror] #define PACKAGE "gas" ... gas/config * loongarch-lex-wrapper.c --- gas/config/loongarch-lex-wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gas/config/loongarch-lex-wrapper.c b/gas/config/loongarch-lex-wrapper.c index 3bb0b14c680..4ddeeb73c9b 100644 --- a/gas/config/loongarch-lex-wrapper.c +++ b/gas/config/loongarch-lex-wrapper.c @@ -16,5 +16,5 @@ along with this program; see the file COPYING3. If not, see . */ -#include "sysdep.h" +#include "config.h" #include "config/loongarch-lex.c" -- 2.30.2