From 65e234adfd91f5bfba8cbf3f14f1a9507cfd035d Mon Sep 17 00:00:00 2001 From: Shawn Landden Date: Wed, 27 Mar 2019 01:10:45 +0000 Subject: fix build on arm64 --- src/os.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/os.cpp') diff --git a/src/os.cpp b/src/os.cpp index 4f7ca74f2e..1dd22b7183 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -2076,3 +2076,21 @@ void os_file_close(OsFile file) { close(file); #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 -- cgit v1.2.3