Skip to content

Commit 43aca64

Browse files
committed
fix: add -D_GNU_SOURCE to CFLAGS for strcasestr visibility on Linux
1 parent c38853f commit 43aca64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.cbm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ GCC_ONLY_FLAGS := -Wno-format-truncation -Wno-unused-result \
4545
-Wno-stringop-truncation -Wno-alloc-size-larger-than
4646
endif
4747

48-
CFLAGS_COMMON = -std=c11 -D_DEFAULT_SOURCE -Wall -Wextra -Werror \
48+
CFLAGS_COMMON = -std=c11 -D_DEFAULT_SOURCE -D_GNU_SOURCE -Wall -Wextra -Werror \
4949
-Wno-unused-parameter -Wno-sign-compare \
5050
$(GCC_ONLY_FLAGS) \
5151
-Isrc -Ivendored -Ivendored/sqlite3 \

0 commit comments

Comments
 (0)