configure: Make stack-protector test check both compile and link
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 11 Apr 2014 16:13:52 +0000 (17:13 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 14 Apr 2014 11:11:18 +0000 (12:11 +0100)
commit590e5dd98fcc926cc3b63aad35aed79235ca4c2a
tree9d5a57a54e8fc33220b1f8e0e5ed464898c26e58
parentf12d048a523780dbda702027d4a91b62af1a08d7
configure: Make stack-protector test check both compile and link

Since we use the -fstack-protector argument at both compile and
link time in the build, we must check that it works with both
a compile and a link:
 * MacOSX only fails in the compile step, not linking
 * some gcc cross environments only fail at the link stage (if they
   require a libssp and it's not present for some reason)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1397232832-32301-1-git-send-email-peter.maydell@linaro.org
Tested-by: Alexey Kardashevskiy <aik@ozlabs.ru>
configure