diff --git a/daemon/Makefile b/daemon/Makefile index f81108682..c044789b4 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -6,7 +6,7 @@ with_transcoding ?= yes CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type \ -Wshadow -CFLAGS+= -pthread -fno-strict-aliasing +CFLAGS+= -pthread CFLAGS+= -std=c11 CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0) diff --git a/recording-daemon/Makefile b/recording-daemon/Makefile index 9440d6d3a..6e28fc840 100644 --- a/recording-daemon/Makefile +++ b/recording-daemon/Makefile @@ -3,7 +3,7 @@ TARGET= rtpengine-recording CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type \ -Wshadow CFLAGS+= -pthread -I. -I../lib/ -I../kernel-module/ -CFLAGS+= -std=c11 -fno-strict-aliasing +CFLAGS+= -std=c11 CFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0) diff --git a/t/Makefile b/t/Makefile index 5de989c41..aff19ba5b 100644 --- a/t/Makefile +++ b/t/Makefile @@ -5,7 +5,7 @@ with_transcoding ?= yes CFLAGS?= -g -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wstrict-prototypes -Werror=return-type \ -Wshadow PRELOAD_CFLAGS := $(CFLAGS) -CFLAGS+= -pthread -fno-strict-aliasing +CFLAGS+= -pthread CFLAGS+= -std=c11 CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0)