Allow overriding external opus libs/cflags in Makefile
Pointed out by @MAN-AT-ARMS.
This commit is contained in:
parent
b02b54883b
commit
574f6d1f31
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -989,8 +989,8 @@ ifeq ($(USE_CODEC_OPUS),1)
|
||||||
-I$(OPUSDIR)/include -I$(OPUSDIR)/celt -I$(OPUSDIR)/silk \
|
-I$(OPUSDIR)/include -I$(OPUSDIR)/celt -I$(OPUSDIR)/silk \
|
||||||
-I$(OPUSDIR)/silk/float -I$(OPUSFILEDIR)/include
|
-I$(OPUSDIR)/silk/float -I$(OPUSFILEDIR)/include
|
||||||
else
|
else
|
||||||
OPUS_CFLAGS=$(shell pkg-config --silence-errors --cflags opusfile opus || true)
|
OPUS_CFLAGS ?= $(shell pkg-config --silence-errors --cflags opusfile opus || true)
|
||||||
OPUS_LIBS=$(shell pkg-config --silence-errors --libs opusfile opus || echo -lopusfile -lopus)
|
OPUS_LIBS ?= $(shell pkg-config --silence-errors --libs opusfile opus || echo -lopusfile -lopus)
|
||||||
endif
|
endif
|
||||||
CLIENT_CFLAGS += $(OPUS_CFLAGS)
|
CLIENT_CFLAGS += $(OPUS_CFLAGS)
|
||||||
CLIENT_LIBS += $(OPUS_LIBS)
|
CLIENT_LIBS += $(OPUS_LIBS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue