# HG changeset patch # User "Yann E. MORIN" # Date 1343840526 -7200 # Node ID c71635732a59345f575ecd410a7ab3091a12b18d # Parent 8c8041e702033d33398c180a88e00f3d77a9b127 cc/gcc: always build core pass-1 Up until now, all conditions requiring a core pass-1 was when the threading implementation used was NPTL. So we only built the core pass-1 when NPTL was used. Now, things have changed (what? when? Dunno...), and some bare-metal canadian toolchains fail to build if a core pass-1 is not present. OTOH, a core pass-1, although not needed for non-NPTL builds, does no harm at all if it is present. So, unconditionally build a core pass-1 (but still pass conditional options to the core backend). Reported-by: Per Arnold Blaasmo Signed-off-by: "Yann E. MORIN" diff -r 8c8041e70203 -r c71635732a59 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Wed Aug 01 22:02:26 2012 +0200 +++ b/scripts/build/cc/gcc.sh Wed Aug 01 19:02:06 2012 +0200 @@ -88,6 +88,15 @@ core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" ) core_opts+=( "lang_list=c" ) ;; + *) + do_core=y + core_opts+=( "mode=static" ) + core_opts+=( "host=${CT_BUILD}" ) + core_opts+=( "complibs=${CT_BUILDTOOLS_PREFIX_DIR}" ) + core_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" ) + core_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" ) + core_opts+=( "lang_list=c" ) + ;; esac if [ "${do_core}" = "y" ]; then