aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2025-01-03 20:28:14 +1300
committerChris Packham <judge.packham@gmail.com>2025-01-05 12:02:19 +1300
commit51bda9ebd6fbe513d10b4d482ae8ae53ca6ccfda (patch)
tree92681ffddfda9d894568a47a554194fc9958212a
parent5014530b4f53fb64eab17d4930490bfc22f45ac3 (diff)
downloadcrosstool-ng-51bda9ebd6fbe513d10b4d482ae8ae53ca6ccfda.tar.gz
crosstool-ng-51bda9ebd6fbe513d10b4d482ae8ae53ca6ccfda.tar.bz2
crosstool-ng-51bda9ebd6fbe513d10b4d482ae8ae53ca6ccfda.zip
picolibc: Avoid build system headers
When building picolibc as a companion library the configure step can end up picking up certain headers from the build system which causes build failures. Pass an appropriate --with-headers= to the GCC back end when building picolibc as a companion library so that the correct headers are detected by ./configure. Signed-off-by: Chris Packham <judge.packham@gmail.com>
-rw-r--r--scripts/build/companion_libs/340-picolibc.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/build/companion_libs/340-picolibc.sh b/scripts/build/companion_libs/340-picolibc.sh
index 0b2038e6..35ee0eaa 100644
--- a/scripts/build/companion_libs/340-picolibc.sh
+++ b/scripts/build/companion_libs/340-picolibc.sh
@@ -150,6 +150,7 @@ do_cc_libstdcxx_picolibc()
final_opts+=( "lang_list=c,c++" )
final_opts+=( "build_step=libstdcxx" )
final_opts+=( "extra_config+=('--enable-stdio=stdio_pure')" )
+ final_opts+=( "extra_config+=('--with-headers=${CT_PREFIX_DIR}/picolibc/include')" )
if [ "${CT_PICOLIBC_older_than_1_8}" = "y" ]; then
final_opts+=( "extra_config+=('--disable-wchar_t')" )
fi