From: Travis Cross Date: Fri, 16 May 2014 23:46:07 +0000 (+0000) Subject: Prevent opus lib from re-configuring on every make X-Git-Tag: v1.4.4~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4888349e1b54b2c99d8bf8920f0dd8721b5042b;p=thirdparty%2Ffreeswitch.git 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. --- 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)