diff options
Diffstat (limited to 'gkbuilds/strace.gkbuild')
-rw-r--r-- | gkbuilds/strace.gkbuild | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/gkbuilds/strace.gkbuild b/gkbuilds/strace.gkbuild new file mode 100644 index 0000000..d32a4b7 --- /dev/null +++ b/gkbuilds/strace.gkbuild @@ -0,0 +1,28 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +src_configure() { + append-ldflags -static -pthread + + local myconf=( + --disable-gcc-Werror + --enable-mpers=check + --enable-static + --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 src/strace "${D}"/usr/bin/ \ + || die "Failed to copy '${S}/src/strace' to '${D}/usr/bin/'!" + + "${STRIP}" --strip-all "${D}"/usr/bin/strace \ + || die "Failed to strip '${D}/usr/bin/strace'!" +} |