Files
RedBear-OS/recipes
vasilito deca6a6820 gcc13: scope -std=gnu++17 to the target branch (char8_t fixed; probe still open)
libcody is compiled by the CROSS compiler, not the host one -- the build
log shows
    x86_64-unknown-redox-g++ ... -c -o buffer.o .../libcody/buffer.cc
because --host is the Redox target. So plain CXXFLAGS is the right knob,
not CXXFLAGS_FOR_BUILD as the previous commit assumed. Scoped to the
gcc-native branch only.

Verified: char8_t errors go 100+ -> 0.

STILL OPEN. With CXXFLAGS set, the top-level configure now fails its
build-side probe:
    checking whether gcc accepts -g... no
    configure: error: C++11 is required
The two states are exclusive as things stand:
  - CXXFLAGS carrying -std=gnu++17  -> char8_t fixed, C++11 probe fails
  - CXXFLAGS without it             -> probe passes, char8_t fails
so something in the exported CXXFLAGS is unacceptable to the HOST gcc
that configure probes (the cookbook adds -fno-hardened -DHAVE_ALLOCA_H=1
-fPIC alongside a target -I). The recipe unsets CFLAGS/CPPFLAGS/LDFLAGS
for this branch but leaves CXXFLAGS set, which is the likely culprit --
the next step is to give the build-side compiler its own clean flags
rather than inheriting the target's.
2026-08-03 18:31:03 +03:00
..