diff --git a/src/Dependency.cpp b/src/Dependency.cpp index 32efff0..033d766 100644 --- a/src/Dependency.cpp +++ b/src/Dependency.cpp @@ -210,55 +210,24 @@ void Dependency::copyYourself() void Dependency::fixFileThatDependsOnMe(std::string file_to_fix) { // for main lib file - std::string command = std::string("install_name_tool -change ") + - getOriginalPath() + " " + getInnerPath() + " " + file_to_fix; - - if( systemp( command ) != 0 ) - { - std::cerr << "\n\nError : An error occured while trying to fix dependencies of " << file_to_fix << std::endl; - exit(1); - } - + changeInstallName(file_to_fix, getOriginalPath(), getInnerPath()); // for symlinks const int symamount = symlinks.size(); for(int n=0; n