aboutsummaryrefslogtreecommitdiff
path: root/scripts/build/cc/gcc.sh
diff options
context:
space:
mode:
authorStephanos Ioannidis <root@stephanos.io>2024-09-23 17:36:29 +0900
committerChris Packham <judge.packham@gmail.com>2024-10-06 15:51:13 +1300
commit9884db4c87366c117c54905b08cd44784b8c3639 (patch)
treef91c460fa10ddc7d58c23684176d454550d61e71 /scripts/build/cc/gcc.sh
parent0d2e5c751b5a667503039b545ea73ff565808a35 (diff)
downloadcrosstool-ng-9884db4c87366c117c54905b08cd44784b8c3639.tar.gz
crosstool-ng-9884db4c87366c117c54905b08cd44784b8c3639.tar.bz2
crosstool-ng-9884db4c87366c117c54905b08cd44784b8c3639.zip
Specify header path in CT_CC_SYSROOT_ARG only for glibc
When building a non-sysrooted toolchain, `--with-headers` argument is specified in `CT_CC_SYSROOT_ARG` as a hack, supposedly because "final gcc will define disable_glibc while building libgcc, and you'll have no profiling." This, however, leads to `--with-headers` being specified multiple times when building libstdc++ for additional libc variants (e.g. newlib-nano and picolibc) and results in wrong libc headers being used by the libstdc++ build under certain circumstances -- GCC does not use the last specified `--with-headers` when building for macOS and Windows hosts. Since the above hack is intended for glibc only, this commit adds a check to ensure that `--with-headers` is added to `CT_CC_SYSROOT_ARG` only when building glibc. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
Diffstat (limited to 'scripts/build/cc/gcc.sh')
0 files changed, 0 insertions, 0 deletions