From efde936cf424db48520f84d50b28d8f7e4b40049 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Sun, 30 Aug 2020 21:06:10 +0000 Subject: math/reduce: fix the build with LLVM 11 reduce started to fail with the default switch to -fno-common in LLVM 11 (and GCC 10). This patch was written then confirmed to be the fix that upstream also provided in late March. MFH: 2020Q3 (-fno-common build fix) --- math/reduce/files/patch-generic_newfront_redfront.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'math/reduce') diff --git a/math/reduce/files/patch-generic_newfront_redfront.h b/math/reduce/files/patch-generic_newfront_redfront.h index 49428f210f5e..5678178e960d 100644 --- a/math/reduce/files/patch-generic_newfront_redfront.h +++ b/math/reduce/files/patch-generic_newfront_redfront.h @@ -12,3 +12,14 @@ #include "chartype.h" #endif +@@ -133,8 +133,8 @@ extern int wcwidth(wchar_t c); + #define HANDLE_T int + #endif + +-HANDLE_T MeToReduce[2]; +-HANDLE_T ReduceToMe[2]; ++extern HANDLE_T MeToReduce[2]; ++extern HANDLE_T ReduceToMe[2]; + extern int redread(HANDLE_T h, void *buffer, int len); + extern int redwrite(HANDLE_T h, void *buffer, int len); + extern void redclose(HANDLE_T h); -- cgit v1.2.3