Browse Source

TT#111150 Use standard flags for the test preload library

Change-Id: I1f58d576aadf15626bcc21ea9510b376f8edb20f
pull/1216/head
Guillem Jover 5 years ago
parent
commit
39a2b288ad
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      t/Makefile

+ 5
- 1
t/Makefile View File

@ -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