Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-26 11:52:22 +00:00
parent 9e8462e2cd
commit 6ddc263338
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550171
3 changed files with 30 additions and 2 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= sjeng
PORTVERSION= 11.2
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://sjeng.org/ftp/
DISTNAME= Sjeng-Free-${PORTVERSION}
@ -16,7 +16,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libgdbm.so:databases/gdbm
USES= localbase
USES= localbase dos2unix
GNU_CONFIGURE= yes
PLIST_FILES= bin/sjeng

View file

@ -0,0 +1,17 @@
--- extvars.h.orig 2001-12-27 22:19:58 UTC
+++ extvars.h
@@ -129,10 +129,10 @@ extern int numb_moves;
extern int phase;
-FILE *lrn_standard;
-FILE *lrn_zh;
-FILE *lrn_suicide;
-FILE *lrn_losers;
+extern FILE *lrn_standard;
+extern FILE *lrn_zh;
+extern FILE *lrn_suicide;
+extern FILE *lrn_losers;
extern int bestmovenum;
extern int ugly_ep_hack;

View file

@ -0,0 +1,11 @@
--- sjeng.c.orig 2001-12-27 22:20:38 UTC
+++ sjeng.c
@@ -36,7 +36,7 @@ char divider[50] = "----------------------------------
move_s dummy = {0,0,0,0,0};
int board[144], moved[144], ep_square, white_to_move, comp_color, wking_loc,
- bking_loc, white_castled, black_castled, result, ply, pv_length[PV_BUFF],
+ bking_loc, white_castled, black_castled, result, pv_length[PV_BUFF],
pieces[62], squares[144], num_pieces, i_depth, fifty, piece_count;
long int nodes, raw_nodes, qnodes, killer_scores[PV_BUFF],