configure: use do_cc when checking for -fstack-protector support
commit0a9077ea144a7e6a6f456b94e2d2eaad21e74d34
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 9 Apr 2014 11:04:47 +0000 (9 12:04 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 10 Apr 2014 21:17:47 +0000 (10 22:17 +0100)
tree907deb122daf7653d026876479315080dee7da49
parentefcc87d9aedb590b8506cd1a7c8abe557c760f9e
configure: use do_cc when checking for -fstack-protector support

MacOSX clang silently swallows unrecognized -f options when doing a link
with '-framework' also on the command line, so to detect support for
the various -fstack-protector options we must do a plain .c to .o compile,
not a complete compile-and-link.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-id: 1397041487-28477-1-git-send-email-peter.maydell@linaro.org
configure