]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Prevent opus lib from re-configuring on every make
authorTravis Cross <tc@traviscross.com>
Fri, 16 May 2014 23:46:07 +0000 (23:46 +0000)
committerTravis Cross <tc@traviscross.com>
Sat, 17 May 2014 00:03:26 +0000 (00:03 +0000)
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

index af1b6b14c70905f4d3e6c6ac79efea300f1655f4..647358601f54784204ee5252a9826fc2cf03f6a9 100644 (file)
@@ -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)