0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-11 23:00:52 +00:00
termux-packages/packages/gnugo/no-duplicate-symbols.patch.beforehostbuild
Henrik Grimler e491b059f5
gnugo: fix compilation error due to duplicate symbols
-fcommon works around issue for cross-compilation, but with ubuntu
21.10 issue happens for hostbuild as well. Fix core issue instead
having to change hostbuild flags as well.
2022-02-08 08:41:45 +01:00

27 lines
885 B
Plaintext

--- ../unconditional.c.orig 2022-02-08 06:47:33.832807668 +0000
+++ ./engine/unconditional.c 2022-02-08 06:47:59.759417274 +0000
@@ -29,6 +29,10 @@
#include "liberty.h"
+/* Unconditionally meaningless moves. */
+int meaningless_black_moves[BOARDMAX];
+int meaningless_white_moves[BOARDMAX];
+
/* Capture as many strings of the given color as we can. Played stones
* are left on the board and the number of played stones is returned.
* Strings marked in the exceptions array are excluded from capturing
--- ../liberty.h.orig 2022-02-08 06:41:21.633651516 +0000
+++ ./engine/liberty.h 2022-02-08 06:47:51.259435972 +0000
@@ -856,10 +856,6 @@
extern struct worm_data worm[BOARDMAX];
-/* Unconditionally meaningless moves. */
-int meaningless_black_moves[BOARDMAX];
-int meaningless_white_moves[BOARDMAX];
-
/* Surround cache (see surround.c) */
#define MAX_SURROUND 10