From 5f9d4ad144f640dbec4d02a9c1eb53cd92c02f03 Mon Sep 17 00:00:00 2001 From: Christian Jullien Date: Sat, 9 Jan 2021 14:14:05 +0100 Subject: [PATCH] OpenBSD: crtbeginT.o does not exist on thsi system as with other *BSD systems. --- libtcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtcc.c b/libtcc.c index cb6d0789..b75552f1 100644 --- a/libtcc.c +++ b/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");