mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
strace: add build option for static binary.
Can be useful for debugging faulty systems.
This commit is contained in:
parent
48af799aad
commit
d3b57c72a5
1 changed files with 13 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
||||||
# Template file for 'strace'
|
# Template file for 'strace'
|
||||||
pkgname=strace
|
pkgname=strace
|
||||||
version=5.12
|
version=5.12
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--enable-silent-rules --with-libunwind"
|
configure_args="--enable-silent-rules $(vopt_with libunwind)"
|
||||||
makedepends="libunwind-devel"
|
makedepends="$(vopt_if libunwind libunwind-devel)"
|
||||||
short_desc="System Call Tracer"
|
short_desc="System Call Tracer"
|
||||||
maintainer="Anthony Iliopoulos <ailiop@altatus.com>"
|
maintainer="Anthony Iliopoulos <ailiop@altatus.com>"
|
||||||
license="LGPL-2.1-or-later"
|
license="LGPL-2.1-or-later"
|
||||||
|
@ -13,6 +13,16 @@ changelog="https://raw.githubusercontent.com/strace/strace/master/NEWS"
|
||||||
distfiles="https://github.com/strace/strace/releases/download/v${version}/strace-${version}.tar.xz"
|
distfiles="https://github.com/strace/strace/releases/download/v${version}/strace-${version}.tar.xz"
|
||||||
checksum=29171edf9d252f89c988a4c340dfdec662f458cb8c63d85431d64bab5911e7c4
|
checksum=29171edf9d252f89c988a4c340dfdec662f458cb8c63d85431d64bab5911e7c4
|
||||||
|
|
||||||
|
build_options="static libunwind"
|
||||||
|
build_options_default="libunwind"
|
||||||
|
vopt_conflict static libunwind # configure fails
|
||||||
|
desc_option_static="Build static strace binary"
|
||||||
|
desc_option_libunwind="Support printing backtraces for every syscall"
|
||||||
|
|
||||||
|
if [ "$build_option_static" ]; then
|
||||||
|
LDFLAGS=-static
|
||||||
|
fi
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
aarch64*|ppc64*) configure_args+=" --enable-mpers=no" ;;
|
aarch64*|ppc64*) configure_args+=" --enable-mpers=no" ;;
|
||||||
# work around https://github.com/strace/strace/issues/133
|
# work around https://github.com/strace/strace/issues/133
|
||||||
|
|
Loading…
Add table
Reference in a new issue