Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

fix: add -D_GNU_SOURCE to CFLAGS for strcasestr visibility on Linux

Moritz Raguschat43aca64a34e7
diff --git a/Makefile.cbm b/Makefile.cbm
index 37e53eac5..2bd843d73 100644
--- a/Makefile.cbm
+++ b/Makefile.cbm
@@ -45,7 +45,7 @@ GCC_ONLY_FLAGS := -Wno-format-truncation -Wno-unused-result \
-Wno-stringop-truncation -Wno-alloc-size-larger-than
endif
-CFLAGS_COMMON = -std=c11 -D_DEFAULT_SOURCE -Wall -Wextra -Werror \
+CFLAGS_COMMON = -std=c11 -D_DEFAULT_SOURCE -D_GNU_SOURCE -Wall -Wextra -Werror \
-Wno-unused-parameter -Wno-sign-compare \
$(GCC_ONLY_FLAGS) \
-Isrc -Ivendored -Ivendored/sqlite3 \