mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-26 08:00:09 +08:00
Always link libtcc1.a in (useful for va_* on x86)
On x86 tcc call to function in libtcc1.a to implement va_* functions.
This commit is contained in:
parent
f1f45a47ef
commit
078ba241d9
4
Makefile
4
Makefile
@ -143,10 +143,6 @@ ifeq ($(TARGETOS),Darwin)
|
||||
PROGS+=tiny_libmaker$(EXESUF)
|
||||
endif
|
||||
|
||||
ifdef CONFIG_USE_LIBGCC
|
||||
LIBTCC1=
|
||||
endif
|
||||
|
||||
TCCLIBS = $(LIBTCC1) $(LIBTCC) $(LIBTCC_EXTRA)
|
||||
TCCDOCS = tcc.1 tcc-doc.html tcc-doc.info
|
||||
|
||||
|
5
tccelf.c
5
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");
|
||||
|
Loading…
Reference in New Issue
Block a user