summaryrefslogtreecommitdiffstats
path: root/pkgs/development/ada-modules/gprbuild/gpr-project-darwin-rpath-hook.sh
blob: d20895fd12bad5fed937be081f94623e13cab8e6 (plain)
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
}

appendToVar preFixupPhases fixGprProjectDarwinRpath