about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/build-managers/gprbuild/gpr-project-darwin-rpath-hook.sh
blob: 73be2eb5960aac7b0755ab656761f61f196e39bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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
}

preFixupPhases+=" fixGprProjectDarwinRpath"