bintools-wrapper: Set dynamic-linker on OpenBSD

Now that ld.so is symlinked into the libc derivation,
we can use it as a dynamic linker.
In my testing, OpenBSD does not have any issues with executing from
a symlinked ld.so.
This commit is contained in:
Artemis Tosini 2024-10-24 00:15:36 +00:00
parent fcd62ad082
commit 6da0a87109
No known key found for this signature in database
GPG Key ID: EE5227935FE3FF18

View File

@ -134,6 +134,7 @@ let
else if targetPlatform.isLoongArch64 then "${sharedLibraryLoader}/lib/ld-linux-loongarch*.so.1" else if targetPlatform.isLoongArch64 then "${sharedLibraryLoader}/lib/ld-linux-loongarch*.so.1"
else if targetPlatform.isDarwin then "/usr/lib/dyld" else if targetPlatform.isDarwin then "/usr/lib/dyld"
else if targetPlatform.isFreeBSD then "${sharedLibraryLoader}/libexec/ld-elf.so.1" else if targetPlatform.isFreeBSD then "${sharedLibraryLoader}/libexec/ld-elf.so.1"
else if targetPlatform.isOpenBSD then "${sharedLibraryLoader}/libexec/ld.so"
else if hasSuffix "pc-gnu" targetPlatform.config then "ld.so.1" else if hasSuffix "pc-gnu" targetPlatform.config then "ld.so.1"
else ""; else "";