Fix for -fno-common from upstream

This commit is contained in:
kirby 2021-01-30 08:34:15 +00:00
parent 3097032a4a
commit a15b74ccf3
3 changed files with 34 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.25 2020/05/22 04:49:05 kirby Exp $
# $OpenBSD: Makefile,v 1.26 2021/01/30 08:34:15 kirby Exp $
COMMENT = lightweight mapping application for use with or without GPS
DISTNAME = foxtrotgps-1.2.2
REVISION = 0
REVISION = 1
CATEGORIES = geo x11

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-src_callbacks_c,v 1.1 2021/01/30 08:34:15 kirby Exp $
Fix for -fno-common
https://bazaar.launchpad.net/~foxtrotgps-team/foxtrotgps/trunk/revision/323
Index: src/callbacks.c
--- src/callbacks.c.orig
+++ src/callbacks.c
@@ -46,7 +46,7 @@ static gboolean msg_pane_visible=TRUE;
static gboolean maximized = FALSE;
-GtkWidget *dialog10 = NULL;
+static GtkWidget *dialog10 = NULL;
static int local_x = 0;

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-src_tracks_c,v 1.1 2021/01/30 08:34:15 kirby Exp $
Fix for -fno-common
https://bazaar.launchpad.net/~foxtrotgps-team/foxtrotgps/trunk/revision/323
Index: src/tracks.c
--- src/tracks.c.orig
+++ src/tracks.c
@@ -30,7 +30,7 @@
GSList *loaded_track = NULL;
GtkWidget *window12;
-GtkWidget *dialog10;
+static GtkWidget *dialog10;