mirror of
https://github.com/mirror/tinycc.git
synced 2026-09-05 12:14:52 +08:00
OpenBSD: Fix crt startup names - WIP
This commit is contained in:
6
tccelf.c
6
tccelf.c
@@ -1429,7 +1429,11 @@ ST_FUNC void tcc_add_runtime(TCCState *s1)
|
||||
#endif
|
||||
if (strlen(TCC_LIBTCC1) > 0)
|
||||
tcc_add_support(s1, TCC_LIBTCC1);
|
||||
#ifndef TCC_TARGET_MACHO
|
||||
#if defined(__OpenBSD__)
|
||||
/* add crt end if not memory output */
|
||||
if (s1->output_type != TCC_OUTPUT_MEMORY)
|
||||
tcc_add_crt(s1, "crtend.o");
|
||||
#elif !defined(TCC_TARGET_MACHO)
|
||||
/* add crt end if not memory output */
|
||||
if (s1->output_type != TCC_OUTPUT_MEMORY)
|
||||
tcc_add_crt(s1, "crtn.o");
|
||||
|
||||
Reference in New Issue
Block a user