|
From: | Eric Blake |
Subject: | Re: [Qemu-devel] [PATCH 2/3] build-sys: check static linking of UBSAN |
Date: | Thu, 8 Feb 2018 11:48:24 -0600 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 02/08/2018 10:23 AM, Marc-André Lureau wrote:
Signed-off-by: Marc-André Lureau <address@hidden> --- configure | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 41d8a2666c..beb0de6a77 100755 --- a/configure +++ b/configure @@ -5247,7 +5247,15 @@ fi ########################################## # checks for sanitizers-write_c_skeleton+# we could use a simple skeleton for flags chekcs, but this also
s/chekcs/checks/
+# detect the static linking issue of ubsan, see also: +# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84285 +cat > $TMPC << EOF +#include <stdint.h> +int main(void) { + return INT32_MIN / -1; +} +EOFhave_asan=nohave_ubsan=no
-- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
[Prev in Thread] | Current Thread | [Next in Thread] |