From 812e9343e4520ec90934fd7f47134416ad0dce07 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen 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 480537a..895a9b4 100644 --- a/libtcc.c +++ b/libtcc.c @@ -736,6 +736,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;