]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_gsmopen] Fix build with external spandsp 812/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Wed, 19 Aug 2020 20:26:04 +0000 (22:26 +0200)
committerSebastian Kemper <sebastian_ml@gmx.net>
Wed, 19 Aug 2020 20:26:04 +0000 (22:26 +0200)
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
src/mod/endpoints/mod_gsmopen/Makefile.am

index b18a66542184f9631b1bf9a6544b7c7bb0b3cf27..e7c20f257c6cf12ac671217ed99336a4df08c935 100644 (file)
@@ -1,19 +1,9 @@
 include $(top_srcdir)/build/modmake.rulesam
 MODNAME=mod_gsmopen
 
-SPANDSP_DIR=$(switch_srcdir)/libs/spandsp
-SPANDSP_BUILDDIR=$(switch_builddir)/libs/spandsp
-SPANDSP_LA=$(SPANDSP_BUILDDIR)/src/libspandsp.la
-
 mod_LTLIBRARIES = mod_gsmopen.la
 mod_gsmopen_la_SOURCES  = mod_gsmopen.cpp gsmopen_protocol.cpp 
 mod_gsmopen_la_CXXFLAGS = $(SWITCH_AM_CXXFLAGS)
-mod_gsmopen_la_CPPFLAGS = -I$(SPANDSP_DIR)/src -I$(SPANDSP_BUILDDIR)/src -I.
-mod_gsmopen_la_LIBADD   = $(switch_builddir)/libfreeswitch.la $(SPANDSP_LA)
+mod_gsmopen_la_CPPFLAGS = $(SPANDSP_CFLAGS) -I.
+mod_gsmopen_la_LIBADD   = $(switch_builddir)/libfreeswitch.la $(SPANDSP_LIBS)
 mod_gsmopen_la_LDFLAGS  = -avoid-version -module -no-undefined -lctb-0.16 -lgsmme
-
-BUILT_SOURCES = $(SPANDSP_LA)
-
-$(SPANDSP_LA): $(SPANDSP_DIR) $(SPANDSP_DIR)/.update
-       cd $(SPANDSP_BUILDDIR) && $(MAKE) CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)"
-       $(TOUCH_TARGET)