summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-01-16 17:01:20 (GMT)
committerGitHub <noreply@github.com>2017-01-16 17:01:20 (GMT)
commitef58f6c01cff805bc0f830e9e5444de07f8a65f7 (patch)
tree5fd2311bbe43e9aa9dbb9055a7254ce301857f5c /scripts
parentcc30c2c880dd5c771b8c5935baf13d505a5ca3d1 (diff)
parentd47e64711ec2e94f323548f8a59667ef400cefeb (diff)
Merge pull request #535 from stilor/broke-newlib-cxx-canadian
Restore copying headers for gcc_build
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/cc/100-gcc.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/build/cc/100-gcc.sh b/scripts/build/cc/100-gcc.sh
index 475b2a1..0bf4aed 100644
--- a/scripts/build/cc/100-gcc.sh
+++ b/scripts/build/cc/100-gcc.sh
@@ -397,6 +397,13 @@ do_gcc_core_backend() {
;;
esac
+ # This is only needed when building libstdc++ in a canadian environment with
+ # this function being used for final step (i.e., when building for bare metal).
+ if [ "${build_step}" = "gcc_build" ]; then
+ CT_DoLog DEBUG "Copying headers to install area of core C compiler"
+ CT_DoExecLog ALL cp -a "${CT_HEADERS_DIR}" "${prefix}/${CT_TARGET}/include"
+ fi
+
for tmp in ARCH ABI CPU TUNE FPU FLOAT; do
eval tmp="\${CT_ARCH_WITH_${tmp}}"
if [ -n "${tmp}" ]; then