From 51197d9b0db44d3b2562391725804c1faaa8778d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Thu, 3 Sep 2020 12:05:26 +0000 Subject: [PATCH] Fix build with -fno-common --- math/gnubc/Makefile | 2 +- math/gnubc/files/patch-bc_global.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 math/gnubc/files/patch-bc_global.h diff --git a/math/gnubc/Makefile b/math/gnubc/Makefile index 23cf279cbed0..2a8a06650f8f 100644 --- a/math/gnubc/Makefile +++ b/math/gnubc/Makefile @@ -3,7 +3,7 @@ PORTNAME= bc DISTVERSION= 1.07.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= math MASTER_SITES= GNU PKGNAMEPREFIX= gnu diff --git a/math/gnubc/files/patch-bc_global.h b/math/gnubc/files/patch-bc_global.h new file mode 100644 index 000000000000..8c9431053bdf --- /dev/null +++ b/math/gnubc/files/patch-bc_global.h @@ -0,0 +1,15 @@ +--- bc/global.h.orig 2017-04-07 22:20:02 UTC ++++ bc/global.h +@@ -112,9 +112,9 @@ EXTERN int n_history; + + #if defined(LIBEDIT) + /* LIBEDIT data */ +-EditLine *edit INIT(NULL); +-History *hist; +-HistEvent histev; ++EXTERN EditLine *edit INIT(NULL); ++EXTERN History *hist; ++EXTERN HistEvent histev; + #endif + + /* "Condition code" -- false (0) or true (1) */