nix-pills
nix-pills copied to clipboard
Adding explanation on why `patchelf --shrink-rpath` executed before `strip` will remove gcc dependency
trafficstars
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?