aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--tccelf.c5
2 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index d116f07..4f18567 100644
--- a/Makefile
+++ b/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
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");