Unified · Split
| @@ -906,7 +906,7 @@ LIBTCCAPI int tcc_set_output_type(TCCState *s, int output_type) · 905 unmodified lines | ||
| 906 | 906 | tcc_add_crt(s, "crt0.o"); |
| 907 | 907 | tcc_add_crt(s, "crti.o"); |
| 908 | 908 | #endif |
| 909 | − if (s->static_link) | |
| 909 | + if (s->static_link && !TARGETOS_OpenBSD) | |
| 910 | 910 | tcc_add_crt(s, "crtbeginT.o"); |
| 911 | 911 | else if (output_type == TCC_OUTPUT_DLL) |
| 912 | 912 | tcc_add_crt(s, "crtbeginS.o"); |