about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorAudrey Dutcher <audrey@rhelmot.io>2024-05-20 15:21:28 -0700
committerAlyssa Ross <hi@alyssa.is>2024-05-21 08:20:45 +0200
commit718b237d0b8afd4e0b3423b20d8c516c08842457 (patch)
tree854f845326f48b4afa87313eafe65cfb906357d8 /pkgs/build-support
parent8073fc75a89da020c40069f2e8d8a08b5e102612 (diff)
bintools: Add dynamic loader path for FreeBSD native
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/bintools-wrapper/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/bintools-wrapper/default.nix b/pkgs/build-support/bintools-wrapper/default.nix
index 7e570bf6d47c6..2a1fe1344e205 100644
--- a/pkgs/build-support/bintools-wrapper/default.nix
+++ b/pkgs/build-support/bintools-wrapper/default.nix
@@ -129,7 +129,7 @@ let
     else if targetPlatform.isRiscV                    then "${sharedLibraryLoader}/lib/ld-linux-riscv*.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.isFreeBSD                  then "/libexec/ld-elf.so.1"
+    else if targetPlatform.isFreeBSD                  then "${sharedLibraryLoader}/libexec/ld-elf.so.1"
     else if hasSuffix "pc-gnu" targetPlatform.config then "ld.so.1"
     else "";