cc/gcc: fix gcc 4.8 build for C library without threads support

Signed-off-by: Niels Penneman <niels@penneman.org>
Message-Id: <309df93f4354c80e05c9.1388743085@i7sb.local>
Patchwork-Id: 306521
This commit is contained in:
Niels Penneman 2014-01-03 10:57:48 +01:00
parent 23e393f2ec
commit 89e9d9851a

View File

@ -643,6 +643,11 @@ do_cc_backend() {
if [ -n "${CT_CC_ENABLE_CXX_FLAGS}" ]; then
extra_config+=("--enable-cxx-flags=${CT_CC_ENABLE_CXX_FLAGS}")
fi
if [ "${CT_CC_GCC_4_8_or_later}" = "y" ]; then
if [ "${CT_THREADS}" = "none" ]; then
extra_config+=(--disable-libatomic)
fi
fi
if [ "${CT_CC_GCC_LIBMUDFLAP}" = "y" ]; then
extra_config+=(--enable-libmudflap)
else