Fix build with -fno-common

This commit is contained in:
Stefan Eßer 2020-09-30 10:45:08 +00:00
parent c9e43954f5
commit 82282acb54
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550676
4 changed files with 42 additions and 3 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= lincity
PORTVERSION= 1.13.1
PORTREVISION= 7
PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/Lincity%20Development%20Source/${PORTVERSION}
@ -23,8 +23,8 @@ LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= NLS SVGALIB
OPTIONS_SUB= yes
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
NLS_CONFIGURE_ENABLE= nls
SVGALIB_LIB_DEPENDS= libvga.so:graphics/svgalib
SVGALIB_CONFIGURE_ON= --without-x
@ -36,7 +36,7 @@ SVGALIB_CONFIGURE_OFF= --without-svga
PLIST_SUB+= PROG="bin/lincity"
.else
USES+= xorg
USE_XORG= sm xext
USE_XORG= ice sm x11 xext
PLIST_SUB+= PROG="bin/xlincity"
.endif

View File

@ -0,0 +1,13 @@
--- ldsvgui.c.orig 2003-10-05 05:53:32 UTC
+++ ldsvgui.c
@@ -99,8 +99,8 @@ char LIBDIR[_MAX_PATH];
char LIBDIR[256];
#endif
-char *lc_save_dir;
-char save_names[10][42];
+extern char *lc_save_dir;
+extern char save_names[10][42];
/* ---------------------------------------------------------------------- *
* Public Functions

View File

@ -0,0 +1,15 @@
--- main.c.orig 2004-07-03 07:59:05 UTC
+++ main.c
@@ -96,9 +96,9 @@ char LIBDIR[LC_PATH_MAX];
#endif
#endif
-char *lc_save_dir;
-char *lc_temp_file;
-char save_names[10][42];
+extern char *lc_save_dir;
+extern char *lc_temp_file;
+extern char save_names[10][42];
#ifdef CS_PROFILE
int prof_countdown = PROFILE_COUNTDOWN;

View File

@ -0,0 +1,11 @@
--- screen.h.orig 2004-06-22 13:24:19 UTC
+++ screen.h
@@ -20,7 +20,7 @@ extern unsigned char start_font1[2048];
extern unsigned char start_font2[4096];
extern unsigned char start_font3[4096];
-int monthgraph_style;
+extern int monthgraph_style;
/* This is on in screen_full_refresh, used in *_refresh() */
extern char screen_refreshing;