aboutsummaryrefslogtreecommitdiff
blob: 62399ce564d4e2730fd9cbf43ed09311d3479787 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

src_configure() {
	append-ldflags -static -pthread
	export ac_cv_header_libaio_h=yes

	local myconf=(
		--enable-mpers=check
		--without-libunwind
		--without-libdw
	)

	CC_FOR_BUILD="$(tc-getBUILD_CC)" \
	CPP_FOR_BUILD="$(tc-getBUILD_CPP)" \
	gkconf "${myconf[@]}"
}

src_install() {
	mkdir -p "${D}"/usr/bin || die "Failed to create '${D}/usr/bin'!"

	cp -a strace "${D}"/usr/bin/ \
		|| die "Failed to copy '${S}/strace' to '${D}/usr/bin/'!"

	"${STRIP}" --strip-all "${D}"/usr/bin/strace \
		|| die "Failed to strip '${D}/usr/bin/strace'!"
}