Unified · Split
| @@ -956,10 +956,6 @@ static void tcc_add_runtime(TCCState *s1) · 955 unmodified lines | ||
| 956 | 956 | { |
| 957 | 957 | char buf[1024]; |
| 958 | 958 | |
| 959 | − if (!s1->nostdlib) { | |
| 960 | − snprintf(buf, sizeof(buf), "%s/%s", tcc_lib_path, "libtcc1.a"); | |
| 961 | − tcc_add_file(s1, buf); | |
| 962 | − } | |
| 963 | 959 | #ifdef CONFIG_TCC_BCHECK |
| 964 | 960 | if (do_bounds_check) { |
| 965 | 961 | unsigned long *ptr; |
| @@ -993,6 +989,9 @@ static void tcc_add_runtime(TCCState *s1) · 27 unmodified lines | ||
| 993 | 989 | /* add libc */ |
| 994 | 990 | if (!s1->nostdlib) { |
| 995 | 991 | tcc_add_library(s1, "c"); |
| 992 | + | |
| 993 | + snprintf(buf, sizeof(buf), "%s/%s", tcc_lib_path, "libtcc1.a"); | |
| 994 | + tcc_add_file(s1, buf); | |
| 996 | 995 | } |
| 997 | 996 | /* add crt end if not memory output */ |
| 998 | 997 | if (s1->output_type != TCC_OUTPUT_MEMORY && !s1->nostdlib) { |