Merge pull request #182385 from Artturin/bintoolswrapper1

bintools-wrapper: symlink unsymlinked binaries from -unwrapped

authored by Artturi and committed by GitHub 981d9c09 5a5a4cd3

+6 -4
+6 -4
pkgs/build-support/bintools-wrapper/default.nix
··· 164 wrap ld-solaris ${./ld-solaris-wrapper.sh} 165 '') 166 167 - # Create a symlink to as (the assembler). 168 + '' 169 - if [ -e $ldPath/${targetPrefix}as ]; then 170 - ln -s $ldPath/${targetPrefix}as $out/bin/${targetPrefix}as 171 - fi 172 173 '' + (if !useMacosReexportHack then '' 174 wrap ${targetPrefix}ld ${./ld-wrapper.sh} ''${ld:-$ldPath/${targetPrefix}ld}
··· 164 wrap ld-solaris ${./ld-solaris-wrapper.sh} 165 '') 166 167 + # Create symlinks for rest of the binaries. 168 + '' 169 + for binary in objdump objcopy size strings as nm gprof dwp c++filt addr2line ranlib readelf elfedit; do 170 + if [ -e $ldPath/${targetPrefix}''${binary} ]; then 171 + ln -s $ldPath/${targetPrefix}''${binary} $out/bin/${targetPrefix}''${binary} 172 + fi 173 + done 174 175 '' + (if !useMacosReexportHack then '' 176 wrap ${targetPrefix}ld ${./ld-wrapper.sh} ''${ld:-$ldPath/${targetPrefix}ld}