TT#111150 Split CFLAGS between required and optional

Change-Id: I683aef49534a7bf70958f72661a83003cea21c3b
pull/1216/head
Guillem Jover 5 years ago
parent 69d2b3b75c
commit 8508177777

@ -4,7 +4,8 @@ with_iptables_option ?= yes
with_transcoding ?= 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+= -std=c99
CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags glib-2.0)
CFLAGS+= $(shell pkg-config --cflags gthread-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0)

@ -1,5 +1,6 @@
CC?=gcc CC?=gcc
CFLAGS = -O2 -Wall -Wstrict-prototypes -shared -fPIC CFLAGS ?= -O2 -Wall -Wstrict-prototypes
CFLAGS += -shared -fPIC
ifneq ($(RTPENGINE_VERSION),) ifneq ($(RTPENGINE_VERSION),)
CFLAGS += -DRTPENGINE_VERSION="\"$(RTPENGINE_VERSION)\"" CFLAGS += -DRTPENGINE_VERSION="\"$(RTPENGINE_VERSION)\""
else else

@ -1,6 +1,7 @@
TARGET= rtpengine-recording 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+= -std=c99 -fno-strict-aliasing
CFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE CFLAGS+= -D_GNU_SOURCE -D_POSIX_SOURCE -D_POSIX_C_SOURCE
CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags glib-2.0)

@ -2,7 +2,8 @@ TARGET= all-tests
with_transcoding ?= 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+= -std=c99
CFLAGS+= $(shell pkg-config --cflags glib-2.0) CFLAGS+= $(shell pkg-config --cflags glib-2.0)
CFLAGS+= $(shell pkg-config --cflags gthread-2.0) CFLAGS+= $(shell pkg-config --cflags gthread-2.0)

Loading…
Cancel
Save