cc/gcc: fix headers copy for core static

(transplanted from 22ce0c19f06a530d72fd65c89d0777d16c0a97ac)
This commit is contained in:
Yann E. MORIN" 2010-06-13 20:25:00 +02:00
parent 81dee3a87f
commit c3d0ff0ec9

View File

@ -134,8 +134,7 @@ do_cc_core() {
if [ "${copy_headers}" = "y" ]; then
CT_DoLog DEBUG "Copying headers to install area of bootstrap gcc, so it can build libgcc2"
CT_DoExecLog ALL mkdir -p "${core_prefix_dir}/${CT_TARGET}/include"
CT_DoExecLog ALL cp -r "${CT_HEADERS_DIR}"/* "${core_prefix_dir}/${CT_TARGET}/include"
CT_DoExecLog ALL cp -a "${CT_HEADERS_DIR}" "${core_prefix_dir}/${CT_TARGET}/include"
fi
CT_DoLog EXTRA "Configuring ${mode} core C compiler"