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 {
434
434
export STRIP="${ bintoolsFor . strip } /bin/${ bintoolsFor . strip . targetPrefix } strip"
435
435
'' + lib . optionalString ( stdenv . targetPlatform . linker == "cctools" ) ''
436
436
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
438
442
'' ) + lib . optionalString ( targetPlatform == hostPlatform && useLdGold )
439
443
# set LD explicitly if we want gold even if we aren't cross compiling
440
444
''
You can’t perform that action at this time.
0 commit comments