Re: LLVM strip -x fails

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Palle Girgensohn <girgen@pingpong.net>, pgsql-hackers@postgresql.org, Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Date: 2023-04-20T16:43:48Z
Lists: pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> Afaict the only safe thing to use when stripping static libs is
> -g/--strip-debug.

The previous complaint about this [1] suggested we use --strip-unneeded
for all cases with GNU strip, same as we've long done for shared libs.
It's an easy enough change, but I wonder if anyone will complain.

			regards, tom lane

[1] https://www.postgresql.org/message-id/17898-5308d09543463266%40postgresql.org



Commits

  1. Use --strip-unneeded when stripping static libraries with GNU strip.

  2. Add make install-strip target.