On 1/23/20 9:20 AM, Paolo Bonzini wrote:
> Il gio 23 gen 2020, 19:43 Peter Maydell <peter.mayd...@linaro.org
> <mailto:peter.mayd...@linaro.org>> ha scritto:
>     When I try to build-test this merge, the clang sanitizer
>     build seems to fail whenever it tries to link anything:
>     (configure args '--cc=clang' '--cxx=clang++' '--enable-gtk'
>     '--extra-cflags=-fsanitize=undefined  -fno-sanitize=shift-base -Werror')
> 
> 
> That's intended, you need to add -fsanitize=undefined to --extra-ldflags as
> well now. I can change that back, but then I am not sure what one would use
> --extra-ldflags for.

This seems broken to me.  Most cflags have to be present on the link line as
well, unless you know very much what you're doing.  I would not expect
--extra-cflags to have to be repeated.


r~

Reply via email to