File tree Expand file tree Collapse file tree 1 file changed +15
-4
lines changed
sdk_container/src/third_party/portage-stable/dev-libs/npth Expand file tree Collapse file tree 1 file changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
- # Copyright 1999-2021 Gentoo Authors
1
+ # Copyright 1999-2023 Gentoo Authors
2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
4
EAPI=7
5
5
6
- inherit autotools
6
+ inherit autotools flag-o-matic toolchain-funcs
7
7
8
8
DESCRIPTION=" New GNU Portable Threads Library"
9
9
HOMEPAGE=" https://git.gnupg.org/cgi-bin/gitweb.cgi?p=npth.git"
10
10
SRC_URI=" mirror://gnupg/${PN} /${P} .tar.bz2"
11
11
12
12
LICENSE=" LGPL-2.1+"
13
13
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 )"
15
17
16
18
src_prepare () {
17
19
default
18
20
eautoreconf
19
21
}
20
22
21
23
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)
23
34
}
24
35
25
36
src_install () {
You can’t perform that action at this time.
0 commit comments