Browse Source

gcc: disable threads when built for uclibc/no-threads [WIP]

user/amery/next/master
Alejandro Mery 13 years ago
parent
commit
9c03fda2ff
  1. 7
      base/gcc/gcc.conf

7
base/gcc/gcc.conf

@ -146,12 +146,17 @@ if atstage cross; then
var_append GCC_WRAPPER_APPEND ' ' "-Wl,-rpath,${root}/lib"
fi
if [ "$SDECFG_LIBC" = 'uclibc' -a "$SDECFG_PKG_UCLIBC_THREADSUPPORT" = 'none' ]; then
var_append confopt " " "--disable-threads"
else
var_append confopt " " "--enable-threads=posix"
fi
if ! atstage native; then
var_append confopt " " "--disable-libmudflap"
else
var_append confopt " " "--with-gnu-as"
var_append confopt " " "--with-gnu-ld"
var_append confopt " " "--enable-threads=posix"
if [ "$SDECFG_PKG_GCC_JAVA" != 1 ] ; then
var_append confopt " " "--disable-libgcj"

Loading…
Cancel
Save