ltrace: Explicit enable/disable of libunwind
PATCH v2 1/1 ltrace: Explicit enable/disable of libunwind
ltrace automatically uses libunwind if detected. So depending if libunwind was already compiled or not, ltrace compiles differently. This patch adds explicit dependency to libunwind if detected.
In add, due to limitation of uclibc, ltrace cannot use libunwind with uclibc. This patch explicitly compile without libunwind in this case.
Resolve issues detected here:
http://autobuild.buildroot.net/results/79dae85647526cdeddae5050db0339fbc38c9ae6 http://autobuild.buildroot.net/results/808569f6bfac059b57eb4f1e692fbc9909e791cf http://autobuild.buildroot.net/results/83d0cd13d64053869708c666e2aa533202af67f7
---
V2:
Previous version introduced an horrible bug: Usage of = instead of += on LTRACE_CONF_OPT. So, --disable-werror was no more passed to configure script. Thus, patches 2/3 and 3/3 are no more usefull. (Sorry, for the noise)
package/ltrace/ltrace.mk | 7 +++++++ 1 file changed, 7 insertions(+)
package/ltrace/ltrace.mk +7 -0
@@ -13,4 +13,11 @@ LTRACE_CONF_OPT = --disable-werror LTRACE_LICENSE = GPLv2 LTRACE_LICENSE_FILES = COPYING +ifeq ($(BR2_PACKAGE_LIBUNWIND)$(BR2_TOOLCHAIN_USES_GLIBC),yy) +LTRACE_DEPENDENCIES += libunwind +LTRACE_CONF_OPT += --with-libunwind +else +LTRACE_CONF_OPT += --without-libunwind +endif + $(eval $(autotools-package))
Signature · 1 line
1.7.9.5
PATCH v2 1/1 ltrace: Explicit enable/disable of libunwind
Dear J?r?me Pouiller,
Quoted 7 lines · J?r?me Pouiller
ltrace automatically uses libunwind if detected. So depending if libunwind was already compiled or not, ltrace compiles differently. This patch adds explicit dependency to libunwind if detected.
In add, due to limitation of uclibc, ltrace cannot use libunwind with uclibc. This patch explicitly compile without libunwind in this case.
Quoted 6 lines
Resolve issues detected here:
http://autobuild.buildroot.net/results/79dae85647526cdeddae5050db0339fbc38c9ae6 http://autobuild.buildroot.net/results/808569f6bfac059b57eb4f1e692fbc9909e791cf http://autobuild.buildroot.net/results/83d0cd13d64053869708c666e2aa533202af67f7Signed-off-by J?r?me Pouiller <[email protected]>
Argh, sorry, this was too late. In the mean time, Gustavo submitted a similar patch, which I committed just minutes ago.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com