Message ID | 76f3ac3697f23244c624.1393430436@openSUSE-i7 |
---|---|
State | New |
Headers | show |
diff -r c727adf1b7bd -r 76f3ac3697f2 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Tue Feb 25 13:34:48 2014 -0500 +++ b/scripts/build/cc/gcc.sh Wed Feb 26 10:59:27 2014 -0500 @@ -88,6 +88,14 @@ return 0 fi + # skip gcc pass 1 if there are no Linux kernel headers + # nor libc start files to build/process + if [ "${CT_LIBC}" = "none" -o "${CT_LIBC}" = "newlib" ]; then + if [ "${CT_BARE_METAL}" = "y" ]; then + return 0 + fi + fi + core_opts+=( "mode=static" ) core_opts+=( "host=${CT_BUILD}" ) core_opts+=( "complibs=${CT_BUILDTOOLS_PREFIX_DIR}" )