[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Is static linking functional?
From: |
Wendell P |
Subject: |
Re: [Tinycc-devel] Is static linking functional? |
Date: |
Mon, 23 Jun 2014 12:07:45 -0700 |
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] Is static linking functional?, Wendell P, 2014/06/16
- Re: [Tinycc-devel] Is static linking functional?, lifenjoiner, 2014/06/17
- Re: [Tinycc-devel] Is static linking functional?, Wendell P, 2014/06/21
- Re: [Tinycc-devel] Is static linking functional?, lifenjoiner, 2014/06/22
- Re: [Tinycc-devel] Is static linking functional?, Wendell P, 2014/06/22
- Re: [Tinycc-devel] Is static linking functional?, grischka, 2014/06/22
- Re: [Tinycc-devel] Is static linking functional?,
Wendell P <=
- Re: [Tinycc-devel] Is static linking functional?, Daniel Glöckner, 2014/06/23
- Re: [Tinycc-devel] Is static linking functional?, Wendell P, 2014/06/24
- Re: [Tinycc-devel] Is static linking functional?, Evan Langlois, 2014/06/24
- Re: [Tinycc-devel] Is static linking functional?, lifenjoiner, 2014/06/24