]> git.proxmox.com Git - qemu.git/commitdiff
w32: Fix configure test for -march=i486
authorStefan Weil <sw@weilnetz.de>
Sat, 11 May 2013 19:46:58 +0000 (21:46 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 15 May 2013 13:49:28 +0000 (08:49 -0500)
The latest version of MinGW needs a test for __sync_val_compare_and_swap
to fix a missing symbol linker error.

Reported-by: Igor Mitsyanko <i.mitsyanko@gmail.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Message-id: 1368301619-32097-2-git-send-email-sw@weilnetz.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure

index 29b5589fa4c7ac3efe53fb8f5e65c5241d257a2f..5ae7e4a348d7b675db774a7fbf90400c28157ed6 100755 (executable)
--- a/configure
+++ b/configure
@@ -1346,6 +1346,7 @@ static int sfaa(int *ptr)
 int main(void)
 {
   int val = 42;
+  val = __sync_val_compare_and_swap(&val, 0, 1);
   sfaa(&val);
   return val;
 }