diff options
author | Dan McGregor <dan.mcgregor@usask.ca> | 2017-03-01 04:10:37 -0600 |
---|---|---|
committer | Dan McGregor <dan.mcgregor@usask.ca> | 2017-03-01 22:23:39 -0600 |
commit | c88621f74005dcbbc9787c1cae33c5751ec5ef81 (patch) | |
tree | 99ee140552d4b8dd5a5d2c107343bde0ae8f8985 /scripts/build/libc | |
parent | a0ab14c4a73f4bfd9cf2dd844dc28b838788801a (diff) | |
download | crosstool-ng-c88621f74005dcbbc9787c1cae33c5751ec5ef81.tar.gz crosstool-ng-c88621f74005dcbbc9787c1cae33c5751ec5ef81.tar.bz2 crosstool-ng-c88621f74005dcbbc9787c1cae33c5751ec5ef81.zip |
glibc: hide native c++ executable from build
If glibc's configure finds the host c++ executable it assumes that
c++ should be enabled for the build. In case we don't have cross g++
built yet (ie, for headers), this causes the build to fail creating
C++ headers. So hide C++ from the build.
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/glibc.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 25687ce9..52074579 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -247,6 +247,10 @@ do_libc_backend_once() { [ -n "${CT_TOOLCHAIN_BUGURL}" ] && extra_config+=("--with-bugurl=${CT_TOOLCHAIN_BUGURL}") touch config.cache + + # Hide host C++ binary from configure + echo "ac_cv_prog_ac_ct_CXX=${CT_TARGET}-g++" >>config.cache + if [ "${CT_LIBC_GLIBC_FORCE_UNWIND}" = "y" ]; then echo "libc_cv_forced_unwind=yes" >>config.cache echo "libc_cv_c_cleanup=yes" >>config.cache |