Files
nixpkgs/pkgs/development/ada-modules/gprbuild/gpr-project-darwin-rpath-hook.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
366 B
Bash
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
fixGprProjectDarwinRpath() {
for f in $(find $out -type f -executable); do
install_name_tool -id $f $f || true
for rpath in $(otool -L $f | grep @rpath | awk '{print $1}'); do
install_name_tool -change $rpath ${!outputLib}/lib/$(basename $rpath) $f || true
done
done
}
appendToVar preFixupPhases fixGprProjectDarwinRpath