1fixGprProjectDarwinRpath() { 2 for f in $(find $out -type f -executable); do 3 install_name_tool -id $f $f || true 4 for rpath in $(otool -L $f | grep @rpath | awk '{print $1}'); do 5 install_name_tool -change $rpath ${!outputLib}/lib/$(basename $rpath) $f || true 6 done 7 done 8} 9 10appendToVar preFixupPhases fixGprProjectDarwinRpath