File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -299,6 +299,10 @@ stdenv.mkDerivation (rec {
299
299
export RANLIB="${ targetCC . bintools . bintools } /bin/${ targetCC . bintools . targetPrefix } ranlib"
300
300
export READELF="${ targetCC . bintools . bintools } /bin/${ targetCC . bintools . targetPrefix } readelf"
301
301
export STRIP="${ targetCC . bintools . bintools } /bin/${ targetCC . bintools . targetPrefix } strip"
302
+ '' + lib . optionalString ( targetPlatform == hostPlatform && useLdGold )
303
+ # set LD explicitly if we want gold even if we aren't cross compiling
304
+ ''
305
+ export LD="ld.gold"
302
306
'' + lib . optionalString ( targetPlatform . isWindows ) ''
303
307
export DllWrap="${ targetCC . bintools . bintools } /bin/${ targetCC . bintools . targetPrefix } dllwrap"
304
308
export Windres="${ targetCC . bintools . bintools } /bin/${ targetCC . bintools . targetPrefix } windres"
You can’t perform that action at this time.
0 commit comments