Revision 023367e6 configure
b/configure | ||
---|---|---|
2510 | 2510 |
fi |
2511 | 2511 |
|
2512 | 2512 |
########################################## |
2513 |
# __sync_fetch_and_and requires at least -march=i486. Many toolchains |
|
2514 |
# use i686 as default anyway, but for those that don't, an explicit |
|
2515 |
# specification is necessary |
|
2516 |
if test $vhost_net = "yes" && test $cpu = "i386"; then |
|
2517 |
cat > $TMPC << EOF |
|
2518 |
int sfaa(unsigned *ptr) |
|
2519 |
{ |
|
2520 |
return __sync_fetch_and_and(ptr, 0); |
|
2521 |
} |
|
2522 |
|
|
2523 |
int main(int argc, char **argv) |
|
2524 |
{ |
|
2525 |
int val = 42; |
|
2526 |
sfaa(&val); |
|
2527 |
return val; |
|
2528 |
} |
|
2529 |
EOF |
|
2530 |
if ! compile_prog "" "" ; then |
|
2531 |
CFLAGS+="-march=i486" |
|
2532 |
fi |
|
2533 |
fi |
|
2534 |
|
|
2535 |
########################################## |
|
2513 | 2536 |
# End of CC checks |
2514 | 2537 |
# After here, no more $cc or $ld runs |
2515 | 2538 |
|
Also available in: Unified diff