diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2014-03-25 21:18:57 +0800 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2014-03-25 21:18:57 +0800 |
| commit | 078ba241d9c24b15f734b4959f877519d7098140 (patch) | |
| tree | e4a785b5f89e69e746e5f13fab17b3ada01d35e5 /tccelf.c | |
| parent | f1f45a47ef1c58e52a9599026ef666affc991b44 (diff) | |
| download | tinycc-078ba241d9c24b15f734b4959f877519d7098140.tar.gz tinycc-078ba241d9c24b15f734b4959f877519d7098140.tar.bz2 | |
Always link libtcc1.a in (useful for va_* on x86)
On x86 tcc call to function in libtcc1.a to implement va_* functions.
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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"); |
