diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-02 01:00:44 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-02 01:00:44 +0000 |
commit | 21969815a0c032a44762a59886766a6c932885f9 (patch) | |
tree | d9e7bf943c45a0e0aeba13bc434511804f43df90 /codecs | |
parent | 4ff493aff51bc02da8e49edd7200f57e59e83b98 (diff) |
Instead of linking libresample into the main Asterisk binary, build it as
res_resample, and mark codec_resample as dependent upon res_resample. This
prevents the linker from optimizing away libresample, and also makes it so the
libresample code isn't linked in to multiple places. (I have another module
in a branch that needs it, too.)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95697 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rw-r--r-- | codecs/Makefile | 5 | ||||
-rw-r--r-- | codecs/codec_resample.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/codecs/Makefile b/codecs/Makefile index f7bde5c50..ef76962e5 100644 --- a/codecs/Makefile +++ b/codecs/Makefile @@ -55,7 +55,4 @@ $(LIBG722): $(if $(filter codec_g722,$(EMBEDDED_MODS)),modules.link,codec_g722.so): $(LIBG722) -codec_resample.o: ASTCFLAGS+=-I$(ASTTOPDIR)/main/libresample/include -ifneq ($(findstring $(OSARCH), mingw32 cygwin ),) - codec_resample.so: LIBS += $(ASTTOPDIR)/main/libresample/libresample.a -endif +codec_resample.o: ASTCFLAGS+=-I$(ASTTOPDIR)/res/libresample/include diff --git a/codecs/codec_resample.c b/codecs/codec_resample.c index 66d60169d..718ab88ae 100644 --- a/codecs/codec_resample.c +++ b/codecs/codec_resample.c @@ -24,6 +24,10 @@ * \ingroup codecs */ +/*** MODULEINFO + <depend>res_resample</depend> + ***/ + #include "asterisk.h" ASTERISK_FILE_VERSION(__FILE__, "$Revision$") |