~ruther/guix-local

ref: 26ebd111bcefc5d84cab545724544a3e57b4a558 guix-local/gnu/packages/patches/tcc-boot-0.9.27.patch -rw-r--r-- 604 bytes
26ebd111 — Ludovic Courtès gnu: polkit: Rename default variable to 'polkit-mozjs'. 4 years ago
                                                                                
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
From 1431ba3a99582e4c3d2693ac37e57f361858affd Mon Sep 17 00:00:00 2001
From: Jan Nieuwenhuizen <janneke@gnu.org>
Date: Mon, 11 Jun 2018 18:39:44 +0200
Subject: [PATCH] bootstrappable: Force static link.

---
 libtcc.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libtcc.c b/libtcc.c
index 3448f44..02ab850 100644
--- a/libtcc.c
+++ b/libtcc.c
@@ -735,6 +735,9 @@ LIBTCCAPI TCCState *tcc_new(void)
     tcc_state = s;
     ++nb_states;
 
+#if BOOTSTRAP
+    s->static_link = 1;
+#endif
     s->alacarte_link = 1;
     s->nocommon = 1;
     s->warn_implicit_function_declaration = 1;
-- 
2.16.2