make-bootstrap-tools.nix: don't pull in pkgs.glibc in test (#210038)

`builtins.baseNameOf` retains any string context, causing the test
derivation to incorrectly depend on `pkgs.glibc`. All we really want is
to know what the dynamicLinker is called, but we don't need it to be
present in store.

Thanks to Adam Joseph for spotting this.

authored by

sternenseemann and committed by
GitHub
8e35002b 20dcc692

+1 -1
+1 -1
pkgs/stdenv/linux/make-bootstrap-tools.nix
··· 272 gcc --version 273 274 '' + lib.optionalString (stdenv.hostPlatform.libc == "glibc") '' 275 - ldlinux=$(echo ${bootstrapTools}/lib/${builtins.baseNameOf binutils.dynamicLinker}) 276 export CPP="cpp -idirafter ${bootstrapTools}/include-glibc -B${bootstrapTools}" 277 export CC="gcc -idirafter ${bootstrapTools}/include-glibc -B${bootstrapTools} -Wl,-dynamic-linker,$ldlinux -Wl,-rpath,${bootstrapTools}/lib" 278 export CXX="g++ -idirafter ${bootstrapTools}/include-glibc -B${bootstrapTools} -Wl,-dynamic-linker,$ldlinux -Wl,-rpath,${bootstrapTools}/lib"
··· 272 gcc --version 273 274 '' + lib.optionalString (stdenv.hostPlatform.libc == "glibc") '' 275 + ldlinux=$(echo ${bootstrapTools}/lib/${builtins.unsafeDiscardStringContext /* only basename */ (builtins.baseNameOf binutils.dynamicLinker)}) 276 export CPP="cpp -idirafter ${bootstrapTools}/include-glibc -B${bootstrapTools}" 277 export CC="gcc -idirafter ${bootstrapTools}/include-glibc -B${bootstrapTools} -Wl,-dynamic-linker,$ldlinux -Wl,-rpath,${bootstrapTools}/lib" 278 export CXX="g++ -idirafter ${bootstrapTools}/include-glibc -B${bootstrapTools} -Wl,-dynamic-linker,$ldlinux -Wl,-rpath,${bootstrapTools}/lib"