From e6658cc79abf8ae926c873bf305351ae5ba43931 Mon Sep 17 00:00:00 2001 From: vasilito Date: Mon, 29 Jun 2026 02:40:49 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20kf6-ki18n=20=E2=80=94=20force=20-include?= =?UTF-8?q?=20stdlib.h=20for=20strtold=20visibility?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC does 'using ::strtold;' which requires strtold declared in global namespace. relibc declares it correctly in stdlib.h, but Qt's include chain (qchar.h → qglobal.h → ... → cstdlib) pulls in cstdlib before stdlib.h is fully processed. Adding -include stdlib.h ensures the C stdlib declarations are in scope before any C++ header. --- local/recipes/kde/kf6-ki18n/recipe.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/local/recipes/kde/kf6-ki18n/recipe.toml b/local/recipes/kde/kf6-ki18n/recipe.toml index 2659c817b3..ba6eda0bfb 100644 --- a/local/recipes/kde/kf6-ki18n/recipe.toml +++ b/local/recipes/kde/kf6-ki18n/recipe.toml @@ -40,6 +40,8 @@ cmake "${COOKBOOK_SOURCE}" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}" \ + -DCMAKE_C_FLAGS="-include stdlib.h" \ + -DCMAKE_CXX_FLAGS="-include stdlib.h" \ -DCMAKE_C_STANDARD_LIBRARIES="-liconv" \ -DCMAKE_CXX_STANDARD_LIBRARIES="-liconv" \ -DCMAKE_SHARED_LINKER_FLAGS="-liconv" \