mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-20 03:44:19 +08:00
OpenBSD: crtbeginT.o does not exist on thsi system as with other *BSD systems.
This commit is contained in:
parent
aed4941e6b
commit
5f9d4ad144
2
libtcc.c
2
libtcc.c
@ -906,7 +906,7 @@ LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type)
|
||||
tcc_add_crt(s, "crt0.o");
|
||||
tcc_add_crt(s, "crti.o");
|
||||
#endif
|
||||
if (s->static_link)
|
||||
if (s->static_link && !TARGETOS_OpenBSD)
|
||||
tcc_add_crt(s, "crtbeginT.o");
|
||||
else if (output_type == TCC_OUTPUT_DLL)
|
||||
tcc_add_crt(s, "crtbeginS.o");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user