Skip to content

Commit b6e7672

Browse files
committed
dev-libs/npth: Sync with Gentoo
It's from Gentoo commit 77f67752cd0fa1d306b5d82723954ac8dbc6cd6c.
1 parent 70d65f6 commit b6e7672

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

sdk_container/src/third_party/portage-stable/dev-libs/npth/npth-1.6-r1.ebuild

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,36 @@
1-
# Copyright 1999-2021 Gentoo Authors
1+
# Copyright 1999-2023 Gentoo Authors
22
# Distributed under the terms of the GNU General Public License v2
33

44
EAPI=7
55

6-
inherit autotools
6+
inherit autotools flag-o-matic toolchain-funcs
77

88
DESCRIPTION="New GNU Portable Threads Library"
99
HOMEPAGE="https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git"
1010
SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"
1111

1212
LICENSE="LGPL-2.1+"
1313
SLOT="0"
14-
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
14+
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
15+
IUSE="test"
16+
RESTRICT="!test? ( test )"
1517

1618
src_prepare() {
1719
default
1820
eautoreconf
1921
}
2022

2123
src_configure() {
22-
econf --disable-static
24+
# ideally we want !tc-ld-is-bfd for best future-proofing, but it needs
25+
# https://github.com/gentoo/gentoo/pull/28355
26+
# mold needs this too but right now tc-ld-is-mold is also not available
27+
if tc-ld-is-lld; then
28+
append-ldflags -Wl,--undefined-version
29+
fi
30+
31+
econf \
32+
--disable-static \
33+
$(use_enable test tests)
2334
}
2435

2536
src_install() {

0 commit comments

Comments
 (0)