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 GitHub
parent 6d52daba37
commit fbd99319d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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,