Re: BUG #17898: Build failure when strip is LLVM's version

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

From: Tom Lane <tgl@sss.pgh.pa.us>
To: emaste@freebsd.org
Cc: pgsql-bugs@lists.postgresql.org
Date: 2023-04-20T22:15:38Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> In FreeBSD we are experimenting with the use of LLVM's binutils-like tools,
> including installing llvm-objcopy as strip. When this is done PostgreSQL
> fails to build, with error

Thanks for the report.

> Within the FreeBSD ports collection TCL and PostgreSQL are the only
> significant software packages affected by this issue. TCL addressed this by
> using --strip-unneeded instead of -x.

We've done likewise [1].

			regards, tom lane

[1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=a14afd3bdc21c0c56401fb8cb2fce74f4b7dc446



Commits

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