File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -434,7 +434,11 @@ stdenv.mkDerivation (rec {
434434 export STRIP="${ bintoolsFor . strip } /bin/${ bintoolsFor . strip . targetPrefix } strip"
435435 '' + lib . optionalString ( stdenv . targetPlatform . linker == "cctools" ) ''
436436 export OTOOL="${ targetCC . bintools . bintools } /bin/${ targetCC . bintools . targetPrefix } otool"
437- export INSTALL_NAME_TOOL="${ bintoolsFor . install_name_tool } /bin/${ bintoolsFor . install_name_tool . targetPrefix } install_name_tool"
437+ if [ -f ${ targetCC } /bin/install_name_tool ]; then
438+ export INSTALL_NAME_TOOL="${ targetCC } /bin/${ targetCC . targetPrefix } install_name_tool"
439+ else
440+ export INSTALL_NAME_TOOL="${ bintoolsFor . install_name_tool } /bin/${ bintoolsFor . install_name_tool . targetPrefix } install_name_tool"
441+ fi
438442 '' ) + lib . optionalString ( targetPlatform == hostPlatform && useLdGold )
439443 # set LD explicitly if we want gold even if we aren't cross compiling
440444 ''
You can’t perform that action at this time.
0 commit comments