aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/tccelf.c b/tccelf.c
index 33ee076..0aa7014 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -1555,24 +1555,7 @@ static void add_init_array_defines(TCCState *s1, const char *section_name)
static int tcc_add_support(TCCState *s1, const char *filename)
{
char buf[1024];
- snprintf(buf, sizeof(buf), "%s/%s/%s", s1->tcc_lib_path,
- /* an cpu specific path inside tcc_lib_path, mainly for keeping libtcc1.a */
- #ifdef TCC_TARGET_I386
- "i386"
- #endif
- #ifdef TCC_TARGET_X86_64
- "x86-64"
- #endif
- #ifdef TCC_TARGET_ARM
- "arm"
- #endif
- #ifdef TCC_TARGET_ARM64
- "arm64"
- #endif
- #ifdef TCC_TARGET_C67
- "C67"
- #endif
- ,filename);
+ snprintf(buf, sizeof(buf), "%s/"TCC_ARCH_DIR"%s", s1->tcc_lib_path, filename);
return tcc_add_file(s1, buf);
}