diff options
author | Niels Penneman <niels@penneman.org> | 2014-01-03 09:57:48 (GMT) |
---|---|---|
committer | Niels Penneman <niels@penneman.org> | 2014-01-03 09:57:48 (GMT) |
commit | 89e9d9851ad4cf67c2cac34f635def2e5e669948 (patch) | |
tree | 900b33b857299502c4393b7de8d291151e3268d2 /scripts | |
parent | 23e393f2ecb8125e365fcb3eabcd6a0ead454a15 (diff) |
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
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/cc/gcc.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 9042dc0..623872e 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -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 |