NixOS / nix-pills

Creative Commons Attribution Share Alike 4.0 International
392 stars 117 forks source link

Adding explanation on why `patchelf --shrink-rpath` executed before `strip` will remove gcc dependency #249

Open edmondop opened 3 months ago

edmondop commented 3 months ago

The following snippet execute patchelf --shrink-path before strip.

find $out -type f -exec patchelf --shrink-rpath '{}' \; -exec strip '{}' \; 2>/dev/null

Shouldn't strip be executed before shrink-rpath, so debug information is removed by strip, and then shrink-rpath can remove gcc as a dependency?