self-host dynamic linker detection

This commit is contained in:
Andrew Kelley
2020-02-17 15:23:59 -05:00
parent c784c52819
commit 2f9c5c0644
17 changed files with 430 additions and 532 deletions

View File

@@ -2129,21 +2129,3 @@ void os_file_close(OsFile *file) {
*file = -1;
#endif
}
#ifdef ZIG_OS_LINUX
const char *possible_ld_names[] = {
#if defined(ZIG_ARCH_X86_64)
"ld-linux-x86-64.so.2",
"ld-musl-x86_64.so.1",
#elif defined(ZIG_ARCH_ARM64)
"ld-linux-aarch64.so.1",
"ld-musl-aarch64.so.1",
#elif defined(ZIG_ARCH_ARM)
"ld-linux-armhf.so.3",
"ld-musl-armhf.so.1",
"ld-linux.so.3",
"ld-musl-arm.so.1",
#endif
NULL,
};
#endif