diff options
| author | Francis Deslauriers | 2016-11-28 16:52:17 +0100 |
|---|---|---|
| committer | Stefan Hajnoczi | 2016-11-29 10:36:12 +0100 |
| commit | c79ed23df5090294a81fd66f67632e4535fb3164 (patch) | |
| tree | ec465c97dfdccd1d2555aa7b16e19408c8fbd33a /configure | |
| parent | Update version for v2.8.0-rc1 release (diff) | |
| download | qemu-c79ed23df5090294a81fd66f67632e4535fb3164.tar.gz qemu-c79ed23df5090294a81fd66f67632e4535fb3164.tar.xz qemu-c79ed23df5090294a81fd66f67632e4535fb3164.zip | |
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@efficios.com>
Message-id: 1480348337-24271-1-git-send-email-francis.deslauriers@efficios.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
