[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [qemu-xen master] configure: fix LTTng UST tracing backend detection
commit c79ed23df5090294a81fd66f67632e4535fb3164 Author: Francis Deslauriers <francis.deslauriers@xxxxxxxxxxxx> AuthorDate: Mon Nov 28 10:52:17 2016 -0500 Commit: Stefan Hajnoczi <stefanha@xxxxxxxxxx> CommitDate: Tue Nov 29 09:36:12 2016 +0000 configure: fix LTTng UST tracing backend detection The detection program needs to be linked with -ldl to build succesfully with recent versions of LTTng-UST. We also need to add -ldl to the libs required to build the LTTng-UST backend (lttng_ust_libs). Signed-off-by: Francis Deslauriers <francis.deslauriers@xxxxxxxxxxxx> Message-id: 1480348337-24271-1-git-send-email-francis.deslauriers@xxxxxxxxxxxx Signed-off-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx> --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 5e66828..89df5c4 100755 --- a/configure +++ b/configure @@ -4305,11 +4305,11 @@ if have_backend "ust"; then #include <lttng/tracepoint.h> int main(void) { return 0; } EOF - if compile_prog "" "" ; then + if compile_prog "" "-Wl,--no-as-needed -ldl" ; then if $pkg_config lttng-ust --exists; then lttng_ust_libs=$($pkg_config --libs lttng-ust) else - lttng_ust_libs="-llttng-ust" + lttng_ust_libs="-llttng-ust -ldl" fi if $pkg_config liburcu-bp --exists; then urcu_bp_libs=$($pkg_config --libs liburcu-bp) -- generated by git-patchbot for /home/xen/git/qemu-xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |