nix-pills icon indicating copy to clipboard operation
nix-pills copied to clipboard

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

Open edmondop opened this issue 1 year ago • 0 comments
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?

edmondop avatar Jun 09 '24 17:06 edmondop