On Sun, Jun 22, 2014, at 11:40 AM, grischka wrote:
> Why should we comment about the usability of -static if you
> don't even know that it means?
I'll admit I'm confused by the operation of the "-static" switch in TCC.
tcc app.c lib.a
outputs an "app.exe" but
tcc -static app.c lib.a
gives an error
tcc: error: cannot find library: msvcrt
>From looking at these lines in tccpe.c, it seems that should not happen.
--------------------------
if (0 == s1->nostdlib) {
static const char *libs[] = {
"libtcc1.a", "msvcrt", "kernel32", "", "user32", "gdi32",
NULL
};
const char **pp, *p;
for (pp = libs; 0 != (p = *pp); ++pp) {
if (0 == *p) {
if (PE_DLL != pe_type && PE_GUI != pe_type)
break;
} else if (pp == libs ? tcc_add_dll(s1, p, 0) :
tcc_add_library(s1, p)) {
tcc_error_noabort("cannot find library: %s", p);
break;
}
}
}
--------------------------
--
http://www.fastmail.fm - Choose from over 50 domains or use your own
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel