summaryrefslogtreecommitdiff
path: root/dev-db/postgresql/postgresql-14.17.ebuild
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@gentoo.org>2025-05-06 16:03:15 -0400
committerEli Schwartz <eschwartz@gentoo.org>2025-05-07 01:41:06 -0400
commitc17e8df006b0c4ff17e41f602323a58a4ca45aa9 (patch)
tree2faeffc7237d3f154c3d2f631b2be860d7769719 /dev-db/postgresql/postgresql-14.17.ebuild
parentab97353e6a4e89c6bba0493e0bf71da5da955991 (diff)
downloadgentoo-c17e8df006b0c4ff17e41f602323a58a4ca45aa9.tar.gz
gentoo-c17e8df006b0c4ff17e41f602323a58a4ca45aa9.tar.bz2
gentoo-c17e8df006b0c4ff17e41f602323a58a4ca45aa9.zip
dev-db/postgresql: use dot-a.eclass
... to avoid installing broken static libraries w/ LTO. Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Diffstat (limited to 'dev-db/postgresql/postgresql-14.17.ebuild')
-rw-r--r--dev-db/postgresql/postgresql-14.17.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-db/postgresql/postgresql-14.17.ebuild b/dev-db/postgresql/postgresql-14.17.ebuild
index 6f039209b493..0d552940b68f 100644
--- a/dev-db/postgresql/postgresql-14.17.ebuild
+++ b/dev-db/postgresql/postgresql-14.17.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 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
@@ -114,6 +114,8 @@ src_prepare() {
}
src_configure() {
+ lto-guarantee-fat
+
case ${CHOST} in
*-darwin*|*-solaris*)
use nls && append-libs intl
@@ -230,6 +232,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