From 078ba241d9c24b15f734b4959f877519d7098140 Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Tue, 25 Mar 2014 21:18:57 +0800 Subject: Always link libtcc1.a in (useful for va_* on x86) On x86 tcc call to function in libtcc1.a to implement va_* functions. --- tccelf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tccelf.c') diff --git a/tccelf.c b/tccelf.c index ee00b03..5072aca 100644 --- a/tccelf.c +++ b/tccelf.c @@ -1377,9 +1377,10 @@ ST_FUNC void tcc_add_runtime(TCCState *s1) if (!s1->nostdlib) { tcc_add_library(s1, "c"); #ifdef CONFIG_USE_LIBGCC - if (!s1->static_link) + if (!s1->static_link) { tcc_add_file(s1, TCC_LIBGCC); - else + tcc_add_support(s1, "libtcc1.a"); + } else tcc_add_support(s1, "libtcc1.a"); #else tcc_add_support(s1, "libtcc1.a"); -- cgit v1.3.1