mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -06:00
w32: Fix configure test for -march=i486
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>
This commit is contained in:
parent
2d16c8e988
commit
1405b6290f
1 changed files with 1 additions and 0 deletions
1
configure
vendored
1
configure
vendored
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue