LoongArch: Fix redefinition of "PACKAGE".
authorliuzhensong <liuzhensong@loongson.cn>
Tue, 30 Aug 2022 03:53:15 +0000 (11:53 +0800)
committerliuzhensong <liuzhensong@loongson.cn>
Tue, 30 Aug 2022 11:06:56 +0000 (19:06 +0800)
  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

index 3bb0b14c680912b446b9d8681b7a06dca26fb23b..4ddeeb73c9b5c46fa937e08c9710e66c012800a1 100644 (file)
@@ -16,5 +16,5 @@
    along with this program; see the file COPYING3.  If not,
    see <http://www.gnu.org/licenses/>.  */
 
-#include "sysdep.h"
+#include "config.h"
 #include "config/loongarch-lex.c"