Skip to content

Commit 0330edb

Browse files
committed
Merge branch 'jc/freebsd-without-c99-only-build'
FreeBSD 13.0 headers have unconditional dependency on C11 language features, and adding -std=gnu99 to DEVELOPER_CFLAGS would just break the developer build. * jc/freebsd-without-c99-only-build: Makefile: FreeBSD cannot do C99-or-below build
2 parents b56bd95 + 2b95d94 commit 0330edb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

config.mak.dev

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,14 @@ endif
2020
endif
2121
endif
2222

23+
ifneq ($(uname_S),FreeBSD)
2324
ifneq ($(or $(filter gcc6,$(COMPILER_FEATURES)),$(filter clang7,$(COMPILER_FEATURES))),)
2425
DEVELOPER_CFLAGS += -std=gnu99
2526
endif
27+
else
28+
# FreeBSD cannot limit to C99 because its system headers unconditionally
29+
# rely on C11 features.
30+
endif
2631

2732
DEVELOPER_CFLAGS += -Wdeclaration-after-statement
2833
DEVELOPER_CFLAGS += -Wformat-security

0 commit comments

Comments
 (0)