about summary refs log tree commit diff
path: root/pkgs/stdenv/darwin/portable-libsystem.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/stdenv/darwin/portable-libsystem.sh')
-rw-r--r--pkgs/stdenv/darwin/portable-libsystem.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/stdenv/darwin/portable-libsystem.sh b/pkgs/stdenv/darwin/portable-libsystem.sh
index f50ccc8d32ee..1fb80c0e5ce9 100644
--- a/pkgs/stdenv/darwin/portable-libsystem.sh
+++ b/pkgs/stdenv/darwin/portable-libsystem.sh
@@ -7,6 +7,6 @@ fixupOutputHooks+=('fixLibsystemRefs $prefix')
 fixLibsystemRefs() {
   if [ -d "$1/bin" ]; then
       find "$1/bin" -exec \
-        install_name_tool -change @libsystem@ /usr/lib/libSystem.B.dylib {} \;
+        @targetPrefix@install_name_tool -change @libsystem@ /usr/lib/libSystem.B.dylib {} \;
   fi
 }