File: gcc-10-port.patch

package info (click to toggle)
mcl14 14-137%2Bocaml-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: ansic: 53,278; ml: 5,793; sh: 4,448; perl: 3,967; makefile: 424
file content (39 lines) | stat: -rw-r--r-- 1,074 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: fixes FTBFS on gcc-10
 A major change to gcc-10 migration is its default to -f-no-common. Instead of overriding and using 
 the old behaviour (by using -fcommon), this patch uses the preferred method of fixing some 
 declarations in the header files via the use of extern.
Bug-Debian: https://bugs.debian.org/957525
Author: Shayan Doust <hello@shayandoust.me> 
Last-Update: 2020-07-22
Forwarded: no (since this version is orphaned)

---

Index: mcl/src/impala/iface.h
===================================================================
--- mcl.orig/src/impala/iface.h
+++ mcl/src/impala/iface.h
@@ -16,15 +16,15 @@
 
 /* This file currently provides nothing */
 
-dim nu_meet_can  ;
-dim nu_meet_sl   ;
-dim nu_meet_zip  ;
-dim nu_diff_can  ;
-dim nu_diff_sl   ;
-dim nu_diff_zip  ;
-double nu_magic  ;
+extern dim nu_meet_can  ;
+extern dim nu_meet_sl   ;
+extern dim nu_meet_zip  ;
+extern dim nu_diff_can  ;
+extern dim nu_diff_sl   ;
+extern dim nu_diff_zip  ;
+extern double nu_magic  ;
 
-dim mclx_n_thread_g  ;
+extern dim mclx_n_thread_g  ;
 
 #endif