This reverts commit 943574aba54713ca4a17fe33aadde5abee233b53. The empty string in "libs" was intended behavior, as can be seen from the "if (0 == *p)" below.
Unified · Split
| @@ -1762,7 +1762,7 @@ static void pe_add_runtime_ex(TCCState *s1, struct pe_info *pe) · 1761 unmodified lines | ||
| 1762 | 1762 | |
| 1763 | 1763 | if (0 == s1->nostdlib) { |
| 1764 | 1764 | static const char *libs[] = { |
| 1765 | − "tcc1", "msvcrt", "kernel32", "user32", "gdi32", NULL | |
| 1765 | + "tcc1", "msvcrt", "kernel32", "", "user32", "gdi32", NULL | |
| 1766 | 1766 | }; |
| 1767 | 1767 | const char **pp, *p; |
| 1768 | 1768 | for (pp = libs; 0 != (p = *pp); ++pp) { |