configure: Diagnose broken linkers directly
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 24 Nov 2015 14:55:46 +0000 (14:55 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 4 Dec 2015 06:39:55 +0000 (09:39 +0300)
commit0ef74c7496fd3c526b2259f86326eca4b3a03b78
treea850ecfaccc475cb02d03033c15a923c32b4a984
parente0df8f18f755d8c976db9bca2faabb763ad98ff2
configure: Diagnose broken linkers directly

Currently if the user's compiler works for creating .o files but
their linker is broken such that compiling an executable from a
C file does not work, we will report a misleading error message
about the compiler not supporting __thread (since that happens
to be the first test we run which requires a working linker).
Explicitly check that compile_prog works as well as compile_object,
so that people whose toolchain setup is broken get a more helpful
error message.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
configure