Revert "pe: fix tcc not linking to user32 and gdi32"
authorThomas Preud'homme <robotux@celest.fr>
Mon, 14 Jan 2013 16:21:06 +0000 (14 17:21 +0100)
committerThomas Preud'homme <robotux@celest.fr>
Mon, 14 Jan 2013 16:21:06 +0000 (14 17:21 +0100)
This reverts commit 943574aba54713ca4a17fe33aadde5abee233b53.
The empty string in "libs" was intended behavior, as can be seen from
the "if (0 == *p)" below.

tccpe.c

diff --git a/tccpe.c b/tccpe.c
index a956da4..b846c11 100644 (file)
--- a/tccpe.c
+++ b/tccpe.c
@@ -1762,7 +1762,7 @@ static void pe_add_runtime_ex(TCCState *s1, struct pe_info *pe)
 
     if (0 == s1->nostdlib) {
         static const char *libs[] = {
-            "tcc1", "msvcrt", "kernel32", "user32", "gdi32", NULL
+            "tcc1", "msvcrt", "kernel32", "", "user32", "gdi32", NULL
         };
         const char **pp, *p;
         for (pp = libs; 0 != (p = *pp); ++pp) {