mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-04-18 00:06:04 +00:00
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>
This commit is contained in:
parent
a0ab14c4a7
commit
c88621f740
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user