From 1692060fb06ab04c3848e7a76c165473f1cc2630 Mon Sep 17 00:00:00 2001 From: herman ten brugge Date: Mon, 27 Dec 2021 11:32:35 +0100 Subject: [PATCH] Fix cross compiling tcc on freebsd --- tccelf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tccelf.c b/tccelf.c index 7e132a11..507e83c5 100644 --- a/tccelf.c +++ b/tccelf.c @@ -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 } }