summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorØrjan Malde <red@foxi.me>2020-06-14 22:22:01 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-06-15 11:17:36 +0100
commitefe08097e3b35c52f8e71708b00c56db2f13d060 (patch)
treeecc95bd4f87f8fd505faca147475750980a98c00
parentf977a7109e872429483487e112e49d47c18374ea (diff)
downloadmidipix_build-efe08097e3b35c52f8e71708b00c56db2f13d060.tar.bz2
midipix_build-efe08097e3b35c52f8e71708b00c56db2f13d060.tar.xz
bmake_host: gcc10 compatibility
Signed-off-by: Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de>
-rw-r--r--patches/bmake_host/gcc10.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/bmake_host/gcc10.patch b/patches/bmake_host/gcc10.patch
new file mode 100644
index 00000000..18e3e13c
--- /dev/null
+++ b/patches/bmake_host/gcc10.patch
@@ -0,0 +1,24 @@
+diff -ru bmake.orig/job.c bmake/job.c
+--- bmake.orig/job.c 2020-04-09 14:03:57.232919836 +0200
++++ bmake/job.c 2020-06-14 22:19:09.776490793 +0200
+@@ -180,6 +180,8 @@
+ #define ABORT_WAIT 3 /* Waiting for jobs to finish */
+ #define JOB_TOKENS "+EI+" /* Token to requeue for each abort state */
+
++FILE *debug_file;
++
+ /*
+ * this tracks the number of tokens currently "out" to build jobs.
+ */
+diff -ru bmake.orig/make.h bmake/make.h
+--- bmake.orig/make.h 2020-02-10 18:07:01.708744511 +0100
++++ bmake/make.h 2020-06-14 22:18:24.965773603 +0200
+@@ -464,7 +464,7 @@
+ * There is one bit per module. It is up to the module what debug
+ * information to print.
+ */
+-FILE *debug_file; /* Output written here - default stdout */
++extern FILE *debug_file; /* Output written here - default stdout */
+ extern int debug;
+ #define DEBUG_ARCH 0x00001
+ #define DEBUG_COND 0x00002