From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7867) id 87FF7385C413; Tue, 30 Aug 2022 11:09:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 87FF7385C413 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: liu & zhensong To: bfd-cvs@sourceware.org Subject: [binutils-gdb] LoongArch: Fix redefinition of "PACKAGE". X-Act-Checkin: binutils-gdb X-Git-Author: liuzhensong X-Git-Refname: refs/heads/master X-Git-Oldrev: 0938b032daa52129b4215d8e0eedb6c9804f5280 X-Git-Newrev: df4febc60037a1f357414667ff07498cf225c22e Message-Id: <20220830110913.87FF7385C413@sourceware.org> Date: Tue, 30 Aug 2022 11:09:13 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2022 11:09:15 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Ddf4febc60037= a1f357414667ff07498cf225c22e commit df4febc60037a1f357414667ff07498cf225c22e Author: liuzhensong Date: Tue Aug 30 11:53:15 2022 +0800 LoongArch: Fix redefinition of "PACKAGE". =20 Running configure and make in binutils-gdb. =20 $ ./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: =E2=80=9CPACKAGE=E2=80=9D redefined [-Werror] #define PACKAGE "gas" ... =20 gas/config * loongarch-lex-wrapper.c Diff: --- 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 . */ =20 -#include "sysdep.h" +#include "config.h" #include "config/loongarch-lex.c"