Stephanos Ioannidis 9884db4c87 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>
2024-10-06 15:51:13 +13:00
..
2018-04-29 12:06:54 -07:00
2018-04-07 12:03:17 -07:00
2024-02-02 15:15:29 +13:00
2024-02-02 15:15:29 +13:00
2018-04-07 12:03:17 -07:00
2018-04-07 12:03:17 -07:00
2018-04-07 12:03:17 -07:00
2018-04-07 12:03:17 -07:00
2024-06-05 19:31:45 +12:00
2018-04-07 14:39:56 -07:00
2017-04-13 00:07:29 -07:00