Re: [Qemu-devel] [RFC PATCH 2/4] configure: introduce --extra-libs

2016-01-26 Thread Alex Bennée
Paolo Bonzini writes: > On 25/01/2016 19:15, Alex Bennée wrote: >> >> Paolo Bonzini writes: >> >>> On 25/01/2016 17:49, Alex Bennée wrote: If for example you want to use the thread sanitizer you want to ensure all binaries are linked with the

Re: [Qemu-devel] [RFC PATCH 2/4] configure: introduce --extra-libs

2016-01-25 Thread Alex Bennée
Peter Maydell writes: > On 25 January 2016 at 16:49, Alex Bennée wrote: >> If for example you want to use the thread sanitizer you want to ensure all >> binaries are linked with the library: >> >> ./configure ${TARGETS} --cc=gcc-5 --cxx=g++-5

Re: [Qemu-devel] [RFC PATCH 2/4] configure: introduce --extra-libs

2016-01-25 Thread Peter Maydell
On 25 January 2016 at 16:49, Alex Bennée wrote: > If for example you want to use the thread sanitizer you want to ensure all > binaries are linked with the library: > > ./configure ${TARGETS} --cc=gcc-5 --cxx=g++-5 \ > --extra-cflags="-fsanitize=thread"

[Qemu-devel] [RFC PATCH 2/4] configure: introduce --extra-libs

2016-01-25 Thread Alex Bennée
If for example you want to use the thread sanitizer you want to ensure all binaries are linked with the library: ./configure ${TARGETS} --cc=gcc-5 --cxx=g++-5 \ --extra-cflags="-fsanitize=thread" --extra-libs="-ltsan" This is more explicit than just specifying --extra-ldflags which might

Re: [Qemu-devel] [RFC PATCH 2/4] configure: introduce --extra-libs

2016-01-25 Thread Peter Maydell
On 25 January 2016 at 17:25, Alex Bennée wrote: > Well LDFLAGS doesn't get applied everywhere so with: > > --cc=gcc-5 --cxx=g++-5 --extra-cflags="-fsanitize=thread" > --extra-ldflags="-ltsan" --with-coroutine=gthread > > You get compile failures in the ancillary binaries

Re: [Qemu-devel] [RFC PATCH 2/4] configure: introduce --extra-libs

2016-01-25 Thread Paolo Bonzini
On 25/01/2016 17:49, Alex Bennée wrote: > If for example you want to use the thread sanitizer you want to ensure all > binaries are linked with the library: > > ./configure ${TARGETS} --cc=gcc-5 --cxx=g++-5 \ > --extra-cflags="-fsanitize=thread" --extra-libs="-ltsan" Shouldn't

Re: [Qemu-devel] [RFC PATCH 2/4] configure: introduce --extra-libs

2016-01-25 Thread Alex Bennée
Paolo Bonzini writes: > On 25/01/2016 17:49, Alex Bennée wrote: >> If for example you want to use the thread sanitizer you want to ensure all >> binaries are linked with the library: >> >> ./configure ${TARGETS} --cc=gcc-5 --cxx=g++-5 \ >>

Re: [Qemu-devel] [RFC PATCH 2/4] configure: introduce --extra-libs

2016-01-25 Thread Paolo Bonzini
On 25/01/2016 19:15, Alex Bennée wrote: > > Paolo Bonzini writes: > >> On 25/01/2016 17:49, Alex Bennée wrote: >>> If for example you want to use the thread sanitizer you want to ensure all >>> binaries are linked with the library: >>> >>> ./configure ${TARGETS}