From 419f723964a0d151d985445b3e5148dc2af07348 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Sat, 24 Feb 2018 22:16:27 +0100 Subject: [PATCH] - enable libunwind on x32, handle libiberty --- strace.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/strace.spec b/strace.spec index 8015fe5..95b6586 100644 --- a/strace.spec +++ b/strace.spec @@ -1,8 +1,9 @@ # # Conditional build: %bcond_without libunwind # strack tracing using libunwind +%bcond_without libiberty # symbol demangling in stack backtraces # -%ifnarch %{ix86} %{x8664} arm hppa ia64 mips ppc ppc64 sh +%ifnarch %{ix86} %{x8664} x32 %{arm} hppa ia64 mips ppc ppc64 sh %undefine with_libunwind %endif Summary: prints system call strace of a running process @@ -25,6 +26,7 @@ Source1: %{name}.1.pl URL: https://strace.io/ # acl and libaio for headers only BuildRequires: acl-devel +%{?with_libiberty:BuildRequires: binutils-devel} BuildRequires: libaio-devel %{?with_libunwind:BuildRequires: libunwind-devel} BuildRequires: tar >= 1:1.22 @@ -112,6 +114,7 @@ Doda wtedy upływający czas dla każdego procesu. CFLAGS="%{rpmcflags} -fPIE" %endif %configure \ + %{!?with_libiberty:--without-libiberty} \ %{!?with_libunwind:--without-libunwind} %{__make} -- 2.44.0