openbsd: adjust dynamic linker path (#9010)

the dynamic linker on OpenBSD is at /usr/libexec/ld.so (and not /libexec/ld.so)
This commit is contained in:
Sebastien Marie 2021-06-06 16:35:15 +02:00 committed by Andrew Kelley
parent 6d6ba1e998
commit 27f6db66e3

View File

@ -1487,7 +1487,7 @@ pub const Target = struct {
switch (self.os.tag) {
.freebsd => return copy(&result, "/libexec/ld-elf.so.1"),
.netbsd => return copy(&result, "/libexec/ld.elf_so"),
.openbsd => return copy(&result, "/libexec/ld.so"),
.openbsd => return copy(&result, "/usr/libexec/ld.so"),
.dragonfly => return copy(&result, "/libexec/ld-elf.so.2"),
.linux => switch (self.cpu.arch) {
.i386,