Gentoo Archives: gentoo-commits

From: "Tim Harder (radhermit)" <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/ltrace/files: ltrace-0.7.1-libunwind-pkgconfig.patch
Date: Sat, 01 Dec 2012 13:01:46
Message-Id: 20121201130134.9084B2169A@flycatcher.gentoo.org
1 radhermit 12/12/01 13:01:34
2
3 Added: ltrace-0.7.1-libunwind-pkgconfig.patch
4 Log:
5 Revision bump. Add debug and unwind use flags. Use pkg-config to detect unwind libraries (fixes bug #445438).
6
7 (Portage version: 2.2.0_alpha143/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)
8
9 Revision Changes Path
10 1.1 dev-util/ltrace/files/ltrace-0.7.1-libunwind-pkgconfig.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ltrace/files/ltrace-0.7.1-libunwind-pkgconfig.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/ltrace/files/ltrace-0.7.1-libunwind-pkgconfig.patch?rev=1.1&content-type=text/plain
14
15 Index: ltrace-0.7.1-libunwind-pkgconfig.patch
16 ===================================================================
17 --- ltrace-0.7.1/configure.ac
18 +++ ltrace-0.7.1/configure.ac
19 @@ -154,26 +154,10 @@
20 AC_MSG_RESULT([$enable_libunwind])
21
22 if test x"$enable_libunwind" = xyes; then
23 - saved_LDFLAGS="${LDFLAGS}"
24 - LDFLAGS="${LDFLAGS} ${AM_LDFLAGS}"
25 - AC_CHECK_LIB(unwind, backtrace, libunwind_LIBS=-lunwind, libunwind_LIBS=)
26 - AC_SUBST(libunwind_LIBS)
27 - AC_CHECK_LIB(unwind-ptrace, _UPT_create, libunwind_ptrace_LIBS=-lunwind-ptrace, libunwind_ptrace_LIBS=)
28 - AC_SUBST(libunwind_ptrace_LIBS)
29 -
30 - case "${host_cpu}" in
31 - arm*|sa110) UNWIND_ARCH="arm" ;;
32 - i?86) UNWIND_ARCH="x86" ;;
33 - powerpc) UNWIND_ARCH="ppc32" ;;
34 - ppc64) UNWIND_ARCH="ppc64" ;;
35 - mips*) UNWIND_ARCH="mips" ;;
36 - *) UNWIND_ARCH="${host_cpu}" ;;
37 - esac
38 -
39 - AC_CHECK_LIB(unwind-${UNWIND_ARCH}, _U${UNWIND_ARCH}_init_remote, libunwind_arch_LIBS=-lunwind-${UNWIND_ARCH}, libunwind_arch_LIBS=)
40 - AC_SUBST(libunwind_arch_LIBS)
41 + PKG_CHECK_MODULES([libunwind], [libunwind-generic])
42 + PKG_CHECK_MODULES([libunwind_ptrace], [libunwind-ptrace])
43 + PKG_CHECK_MODULES([libunwind_arch], [libunwind])
44 AC_DEFINE([HAVE_LIBUNWIND], [1], [we have libunwind])
45 - LDFLAGS="${saved_LDFLAGS}"
46 fi