Fix linking when using UST tracing
cover Fix linking when using UST tracing
---
Lluís Vilanova (3):
configure: Fix typo 'lib_qga' -> 'libs_qga'
configure: Link QEMU against 'liburcu-bp'
configure: Link qga against UST tracing related libraries
configure | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
PATCH 1/3 configure: Fix typo 'lib_qga' -> 'libs_qga'
--- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
@@ -526,7 +526,7 @@ EOF bindir="\${prefix}" sysconfdir="\${prefix}" confsuffix="" - libs_qga="-lws2_32 -lwinmm -lpowrprof $lib_qga" + libs_qga="-lws2_32 -lwinmm -lpowrprof $libs_qga" fi werror=""
Re: [Qemu-devel] [PATCH 1/3] configure: Fix typo 'lib_qga' -> 'libs_qga'
Quoted 10 lines · Lluís Vilanova
Signed-off-by Lluís Vilanova <[email protected]>--- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)configure +0
-0
configure EOF · line 532
Quoted 8 lines
configure +1
-1@@ -526,7 +526,7 @@ EOF bindir="\${prefix}" sysconfdir="\${prefix}" confsuffix="" - libs_qga="-lws2_32 -lwinmm -lpowrprof $lib_qga" + libs_qga="-lws2_32 -lwinmm -lpowrprof $libs_qga" fi werror=""
An equivalent patch is already in the trivial-patches tree:
http://patchwork.ozlabs.org/patch/148919/
Thanks,
Stefan
PATCH 2/3 configure: Link QEMU against 'liburcu-bp'
In reply to Lluís VilanovaThis library is needed when using 'ust/tracepoint.h'.
--- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
configure +1 -1
@@ -2672,7 +2672,7 @@ if test "$trace_backend" = "ust"; then int main(void) { return 0; } EOF if compile_prog "" "" ; then - LIBS="-lust $LIBS" + LIBS="-lust -lurcu-bp $LIBS" else echo echo "Error: Trace backend 'ust' missing libust header files"
Stefan Hajnoczi
AppliedRe: [Qemu-devel] [PATCH 2/3] configure: Link QEMU against 'liburcu-bp'
Quoted 7 lines · Lluís Vilanova
This library is needed when using '
ust/tracepoint.h'.Signed-off-by Harsh Prateek Bora <[email protected]>Signed-off-by Lluís Vilanova <[email protected]>--- configure | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
I also sent an email to lttng-devel asking if pkg-config --libs ust should include this, you are CCed. If the library details will change it would be best for us to use pkg-config.
Stefan
PATCH 3/3 configure: Link qga against UST tracing related libraries
In reply to Lluís Vilanova--- configure | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
configure +1 -0
@@ -2673,6 +2673,7 @@ int main(void) { return 0; } EOF if compile_prog "" "" ; then LIBS="-lust -lurcu-bp $LIBS" + libs_qga="-lust -lurcu-bp $libs_qga" else echo echo "Error: Trace backend 'ust' missing libust header files"
Stefan Hajnoczi
AppliedRe: [Qemu-devel] [PATCH 3/3] configure: Link qga against UST tracing related libraries
Quoted 5 lines · Lluís Vilanova
Signed-off-by Harsh Prateek Bora <[email protected]>Signed-off-by Lluís Vilanova <[email protected]>--- configure | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
It would be nice to clean up libs_qga in the future so that common library lists can be reused instead of duplicating them in both LIBS and libs_qga. Anyway, thanks for this fix.
Stefan