File: fix-lto.patch

package info (click to toggle)
elinks 0.18.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,352 kB
  • sloc: ansic: 156,569; cpp: 30,139; sh: 7,719; python: 4,031; perl: 2,183; pascal: 1,670; makefile: 995; javascript: 904; yacc: 295; lisp: 125; awk: 79; ruby: 70
file content (27 lines) | stat: -rw-r--r-- 884 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
Description: [test] Do not change declaration of install_signal_handler
  -flto caused compilation error.
Origin: upstream,commit: 2761271897a5113d1c9717cae841fc34b6666ba5
Bug: https://github.com/rkd77/elinks/issues/399
Bug-Debian: https://bugs.debian.org/1015394

Index: elinks/src/mime/backend/mailcap.c
===================================================================
--- elinks.orig/src/mime/backend/mailcap.c	2025-10-31 17:22:40.753488652 +0100
+++ elinks/src/mime/backend/mailcap.c	2025-10-31 17:22:40.751488672 +0100
@@ -816,11 +816,15 @@
 
 /* Some ugly shortcuts for getting defined symbols to work. */
 int default_mime_backend,
-    install_signal_handler,
     mimetypes_mime_backend,
     program;
 LIST_OF(struct terminal) terminals;
 
+void
+install_signal_handler(int sig, void (*fn)(void *), void *data, int critical)
+{
+}
+
 int
 main(int argc, char *argv[])
 {