提交 e4888349 authored 作者: Travis Cross's avatar Travis Cross

Prevent opus lib from re-configuring on every make

We were using the libopus directory itself rather than a file within
it as a makefile target.  This is a bad idea as make will see the
target as updated whenever files are created in or removed from the
directory.  Since running configure creates and removes files, the
target will always appear dirty.

The effect was that when mod_opus was enabled in FS make would always
cause libopus to be reconfigured.

We'll target instead the configure file in libopus as that's the first
thing we need anyway.
上级 c19aa584
...@@ -12,10 +12,10 @@ mod_opus_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(OPUS_LA) ...@@ -12,10 +12,10 @@ mod_opus_la_LIBADD = $(switch_builddir)/libfreeswitch.la $(OPUS_LA)
mod_opus_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz mod_opus_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -lz
BUILT_SOURCES=$(OPUS_LA) BUILT_SOURCES=$(OPUS_LA)
$(OPUS_DIR): $(OPUS_DIR)/configure:
$(GETLIB) $(OPUS).tar.gz $(GETLIB) $(OPUS).tar.gz
$(OPUS_BUILDDIR)/Makefile: $(OPUS_DIR) $(OPUS_BUILDDIR)/Makefile: $(OPUS_DIR)/configure
mkdir -p $(OPUS_BUILDDIR) mkdir -p $(OPUS_BUILDDIR)
cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --disable-shared --with-pic --srcdir=$(OPUS_DIR) cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --disable-shared --with-pic --srcdir=$(OPUS_DIR)
$(TOUCH_TARGET) $(TOUCH_TARGET)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论