From c17e8df006b0c4ff17e41f602323a58a4ca45aa9 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 6 May 2025 16:03:15 -0400 Subject: dev-db/postgresql: use dot-a.eclass ... to avoid installing broken static libraries w/ LTO. Signed-off-by: Eli Schwartz --- dev-db/postgresql/postgresql-15.12.ebuild | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'dev-db/postgresql/postgresql-15.12.ebuild') diff --git a/dev-db/postgresql/postgresql-15.12.ebuild b/dev-db/postgresql/postgresql-15.12.ebuild index 6df4844e003d..58b2bdc98692 100644 --- a/dev-db/postgresql/postgresql-15.12.ebuild +++ b/dev-db/postgresql/postgresql-15.12.ebuild @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{10,11,12,13} ) LLVM_COMPAT=( {15..20} ) LLVM_OPTIONAL=1 -inherit flag-o-matic linux-info llvm-r1 pam python-single-r1 systemd tmpfiles +inherit dot-a flag-o-matic linux-info llvm-r1 pam python-single-r1 systemd tmpfiles KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" @@ -115,6 +115,8 @@ src_prepare() { } src_configure() { + lto-guarantee-fat + case ${CHOST} in *-darwin*|*-solaris*) use nls && append-libs intl @@ -232,6 +234,7 @@ src_install() { use static-libs || \ find "${ED}" -name '*.a' ! -name libpgport.a ! -name libpgcommon.a \ -delete + strip-lto-bytecode "${ED}" # Make slot specific links to programs local f bn -- cgit v1.2.3