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 1fb80c0e5ce..7608c0a0de2 100644
--- a/pkgs/stdenv/darwin/portable-libsystem.sh
+++ b/pkgs/stdenv/darwin/portable-libsystem.sh
@@ -6,7 +6,7 @@ fixupOutputHooks+=('fixLibsystemRefs $prefix')
 
 fixLibsystemRefs() {
   if [ -d "$1/bin" ]; then
-      find "$1/bin" -exec \
+      find "$1/bin" -type f -exec \
         @targetPrefix@install_name_tool -change @libsystem@ /usr/lib/libSystem.B.dylib {} \;
   fi
 }