From f846381c4d71226f49e38e10961a5fdfc71a5de4 Mon Sep 17 00:00:00 2001 From: cwen Date: Sun, 31 Jan 2021 16:45:21 +0000 Subject: [PATCH] ace: fix the build with -fno-common OK jsg@ --- games/ace/Makefile | 4 ++-- games/ace/patches/patch-lib_table_c | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 games/ace/patches/patch-lib_table_c diff --git a/games/ace/Makefile b/games/ace/Makefile index 543b325ca9c..3eb0e561d03 100644 --- a/games/ace/Makefile +++ b/games/ace/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.5 2019/10/02 21:11:08 cwen Exp $ +# $OpenBSD: Makefile,v 1.6 2021/01/31 16:45:21 cwen Exp $ COMMENT = solitaire games DISTNAME = ace-1.4 -REVISION = 1 +REVISION = 2 SHARED_LIBS += cards 0.0 # 1.0 diff --git a/games/ace/patches/patch-lib_table_c b/games/ace/patches/patch-lib_table_c new file mode 100644 index 00000000000..a6dc70be457 --- /dev/null +++ b/games/ace/patches/patch-lib_table_c @@ -0,0 +1,16 @@ +$OpenBSD: patch-lib_table_c,v 1.1 2021/01/31 16:45:21 cwen Exp $ + +Fix the build with -fno-common + +Index: lib/table.c +--- lib/table.c.orig ++++ lib/table.c +@@ -57,7 +57,7 @@ static int ex=0, ey=0, ew=0, eh=0; + static int graphics_disabled = 1; + + OptionDesc *app_options; +-OptionDesc *xwin_options; ++extern OptionDesc *xwin_options; + static OptionDesc *options[5]; + + static OptionDesc ace_options[] = {