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