darwin.stdenv: only run install_name_tool on files

This commit is contained in:
Randy Eckenrode 2023-07-08 19:30:33 -06:00
parent feb89eed00
commit 6f6687ee24
No known key found for this signature in database
GPG Key ID: 64C1CD4EC2A600D9

View File

@ -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
}