Fix cross compiling tcc on freebsd

This commit is contained in:
herman ten brugge 2021-12-27 11:32:35 +01:00
parent 6c0e0b998b
commit 1692060fb0

View File

@ -1537,6 +1537,7 @@ ST_FUNC void tcc_add_runtime(TCCState *s1)
if (TCC_LIBTCC1[0])
tcc_add_support(s1, TCC_LIBTCC1);
#if !defined TCC_TARGET_PE && !defined TCC_TARGET_MACHO
#if TARGETOS_OpenBSD || TARGETOS_FreeBSD || TARGETOS_NetBSD
/* add crt end if not memory output */
if (s1->output_type != TCC_OUTPUT_MEMORY) {
@ -1552,6 +1553,7 @@ ST_FUNC void tcc_add_runtime(TCCState *s1)
/* add crt end if not memory output */
if (s1->output_type != TCC_OUTPUT_MEMORY)
tcc_add_crt(s1, "crtn.o");
#endif
#endif
}
}