build: qtbase BUILDS — QPlatformOpenGLContext + strcasecmp fixed

P1-qplatformopengl-guard.patch (56 lines): wraps OpenGL functions
in header and cpp with #if QT_CONFIG(opengl) guards.

redox-toolchain.cmake: added -include strings.h for strcasecmp.

Major wins this session:
- qtbase builds (was blocked on QPlatformOpenGLContext + strcasecmp)
- mesa builds (fixed missing backslash + -Wno-error)
- libwayland builds (121-line durability patch)
- zstd, openssl3, nghttp2, curl, llvm21 all rebuilt from clean
- image (4 GiB) boots with 0 exceptions, zsh default shell
- 92 pkgar files in Packages/
This commit is contained in:
2026-04-28 14:52:39 +01:00
parent e092841004
commit d3c2e4abe0
3 changed files with 34 additions and 5 deletions
+4 -4
View File
@@ -42,10 +42,10 @@ set(CMAKE_SYSTEM_VERSION 1)
# Redox userspace currently must not emit CET/IBT entry instructions (endbr64),
# because they trap as invalid opcode in the current runtime stack.
set(CMAKE_C_FLAGS "-fcf-protection=none -march=x86-64 -fpermissive" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS "-fcf-protection=none -march=x86-64 -fpermissive" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_RELEASE "-fcf-protection=none -march=x86-64 -fpermissive" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "-fcf-protection=none -march=x86-64 -fpermissive" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS "-fcf-protection=none -march=x86-64 -fpermissive -include strings.h" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS "-fcf-protection=none -march=x86-64 -fpermissive -include strings.h" CACHE STRING "" FORCE)
set(CMAKE_C_FLAGS_RELEASE "-fcf-protection=none -march=x86-64 -fpermissive -include strings.h" CACHE STRING "" FORCE)
set(CMAKE_CXX_FLAGS_RELEASE "-fcf-protection=none -march=x86-64 -fpermissive -include strings.h" CACHE STRING "" FORCE)
# Flag for redox.patch: enables REDOX-specific CMake code paths (mkspec, QPA plugin).
# QtPlatformSupport.cmake checks this variable. Set as CACHE INTERNAL so it persists