fix tumble -fno-common build

ok cwen@
This commit is contained in:
jsg 2021-02-02 06:53:29 +00:00
parent 8895fb1815
commit 40444ff3b4
3 changed files with 31 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/04/25 14:02:14 espie Exp $
# $OpenBSD: Makefile,v 1.2 2021/02/02 06:53:29 jsg Exp $
# author says so
ONLY_FOR_ARCHS= ${LE_ARCHS}
@ -8,6 +8,7 @@ COMMENT = convert pictures into pdf book
GH_PROJECT = tumble
GH_ACCOUNT = brouhaha
GH_TAGNAME = v0.36
REVISION = 0
CATEGORIES = graphics textproc

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-semantics_c,v 1.1 2021/02/02 06:53:29 jsg Exp $
fix -fno-common build
Index: semantics.c
--- semantics.c.orig
+++ semantics.c
@@ -119,7 +119,7 @@ typedef struct output_page_t
#endif
-FILE *yyin;
+extern FILE *yyin;
int line; /* line number in spec file */
int bookmark_level;

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-tumble_input_h,v 1.1 2021/02/02 06:53:29 jsg Exp $
fix -fno-common build
Index: tumble_input.h
--- tumble_input.h.orig
+++ tumble_input.h
@@ -71,4 +71,4 @@ void init_jpeg_handler (void);
void init_pbm_handler (void);
void init_png_handler (void);
-input_handler_t blank_handler;
+extern input_handler_t blank_handler;