From 574f6d1f31fcdc699462d8546cbdce0f13b7edea Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sun, 20 Jul 2014 16:55:41 -0500 Subject: [PATCH] Allow overriding external opus libs/cflags in Makefile Pointed out by @MAN-AT-ARMS. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d3183497..f606736b 100644 --- a/Makefile +++ b/Makefile @@ -989,8 +989,8 @@ ifeq ($(USE_CODEC_OPUS),1) -I$(OPUSDIR)/include -I$(OPUSDIR)/celt -I$(OPUSDIR)/silk \ -I$(OPUSDIR)/silk/float -I$(OPUSFILEDIR)/include else - 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_CFLAGS ?= $(shell pkg-config --silence-errors --cflags opusfile opus || true) + OPUS_LIBS ?= $(shell pkg-config --silence-errors --libs opusfile opus || echo -lopusfile -lopus) endif CLIENT_CFLAGS += $(OPUS_CFLAGS) CLIENT_LIBS += $(OPUS_LIBS)