URL: <https://savannah.gnu.org/patch/?10208>
Summary: fix gcc-10 build failure (-fno-common) Project: GNU Go Submitted by: slyfox Submitted on: Sat 21 May 2022 09:49:16 AM UTC Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sat 21 May 2022 09:49:16 AM UTC By: Sergei Trofimovich <slyfox> gcc-10 changed the default from -fcommon to fno-common: https://gcc.gnu.org/PR85678 As a result build fails as: ld: dfa.o:/build/gnugo-3.8/patterns/../engine/liberty.h:861: multiple definition of `meaningless_white_moves'; mkpat.o:/build/gnugo-3.8/patterns/../engine/liberty.h:861: first defined here ld: dfa.o:/build/gnugo-3.8/patterns/../engine/liberty.h:860: multiple definition of `meaningless_black_moves'; mkpat.o:/build/gnugo-3.8/patterns/../engine/liberty.h:860: first defined here The change moves variable definitions into a single .c file that uses them. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/patch/?10208> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/ _______________________________________________ gnugo-devel mailing list gnugo-devel@gnu.org https://lists.gnu.org/mailman/listinfo/gnugo-devel