diff --git a/daemon/Makefile b/daemon/Makefile index 8d99e93a6..841aef72f 100644 --- a/daemon/Makefile +++ b/daemon/Makefile @@ -4,7 +4,8 @@ with_iptables_option ?= yes with_transcoding ?= yes -CFLAGS+= -g -Wall -Wstrict-prototypes -pthread -fno-strict-aliasing +CFLAGS?= -g -Wall -Wstrict-prototypes +CFLAGS+= -pthread -fno-strict-aliasing CFLAGS+= -std=c99 CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0) diff --git a/iptables-extension/Makefile b/iptables-extension/Makefile index 61c5aef5d..6b6ea0c0c 100644 --- a/iptables-extension/Makefile +++ b/iptables-extension/Makefile @@ -1,5 +1,6 @@ CC?=gcc -CFLAGS = -O2 -Wall -Wstrict-prototypes -shared -fPIC +CFLAGS ?= -O2 -Wall -Wstrict-prototypes +CFLAGS += -shared -fPIC ifneq ($(RTPENGINE_VERSION),) CFLAGS += -DRTPENGINE_VERSION="\"$(RTPENGINE_VERSION)\"" else diff --git a/recording-daemon/Makefile b/recording-daemon/Makefile index b5f7c585d..b0e514510 100644 --- a/recording-daemon/Makefile +++ b/recording-daemon/Makefile @@ -1,6 +1,7 @@ TARGET= rtpengine-recording -CFLAGS+= -g -Wall -Wstrict-prototypes -pthread -I. -I../lib/ -I../kernel-module/ +CFLAGS?= -g -Wall -Wstrict-prototypes +CFLAGS+= -pthread -I. -I../lib/ -I../kernel-module/ CFLAGS+= -std=c99 -fno-strict-aliasing CFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE CFLAGS+= $(shell pkg-config --cflags glib-2.0) diff --git a/t/Makefile b/t/Makefile index c7732e3ab..ce548352d 100644 --- a/t/Makefile +++ b/t/Makefile @@ -2,7 +2,8 @@ TARGET= all-tests with_transcoding ?= yes -CFLAGS= -g -Wall -Wstrict-prototypes -pthread -fno-strict-aliasing +CFLAGS?= -g -Wall -Wstrict-prototypes +CFLAGS+= -pthread -fno-strict-aliasing CFLAGS+= -std=c99 CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0)