TT#111150 Use standard flags for the test preload library

Change-Id: I1f58d576aadf15626bcc21ea9510b376f8edb20f
pull/1216/head
Guillem Jover 4 years ago
parent 09cd962eef
commit 39a2b288ad

@ -3,6 +3,7 @@ TARGET= all-tests
with_transcoding ?= yes
CFLAGS?= -g -Wall -Wstrict-prototypes
PRELOAD_CFLAGS := $(CFLAGS)
CFLAGS+= -pthread -fno-strict-aliasing
CFLAGS+= -std=c99
CFLAGS+= $(shell pkg-config --cflags glib-2.0)
@ -170,8 +171,11 @@ test-payload-tracker: test-payload-tracker.o $(COMMONOBJS) ssrc.o aux.o auxlib.o
test-const_str_hash.strhash: test-const_str_hash.strhash.o $(COMMONOBJS)
PRELOAD_CFLAGS += -D_GNU_SOURCE -std=c99
PRELOAD_LIBS += -dl
tests-preload.so: tests-preload.c
$(CC) -g -D_GNU_SOURCE -std=c99 -o $@ -Wall -shared -fPIC $< -ldl
$(CC) $(PRELOAD_CFLAGS) -o $@ -shared -fPIC $< $(LDFLAGS) $(PRELOAD_LIBS)
spandsp_send_fax_pcm.c: spandsp_logging.h
spandsp_send_fax_t38.c: spandsp_logging.h

Loading…
Cancel
Save