From e4888349e1b54b2c99d8bf8920f0dd8721b5042b Mon Sep 17 00:00:00 2001 From: Travis Cross Date: Fri, 16 May 2014 23:46:07 +0000 Subject: [PATCH] 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. --- src/mod/codecs/mod_opus/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/codecs/mod_opus/Makefile.am b/src/mod/codecs/mod_opus/Makefile.am index af1b6b14c7..647358601f 100644 --- a/src/mod/codecs/mod_opus/Makefile.am +++ b/src/mod/codecs/mod_opus/Makefile.am @@ -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 BUILT_SOURCES=$(OPUS_LA) -$(OPUS_DIR): +$(OPUS_DIR)/configure: $(GETLIB) $(OPUS).tar.gz -$(OPUS_BUILDDIR)/Makefile: $(OPUS_DIR) +$(OPUS_BUILDDIR)/Makefile: $(OPUS_DIR)/configure mkdir -p $(OPUS_BUILDDIR) cd $(OPUS_BUILDDIR) && $(DEFAULT_VARS) $(OPUS_DIR)/configure --disable-shared --with-pic --srcdir=$(OPUS_DIR) $(TOUCH_TARGET)