From d0944cde47c7aa3ba14b313859b8d50735a88d8d Mon Sep 17 00:00:00 2001
From: Joshua Colp <jcolp@digium.com>
Date: Tue, 1 Jan 2008 23:09:32 +0000
Subject: [PATCH] Fix building of codec_resample on platforms other then
 Cygwin. On everything else it actually gets built after codec_resample, so
 you can't exactly link it in since it doesn't exist.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@95648 65c4cc65-6c06-0410-ace0-fbb531ad65f3
---
 codecs/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/codecs/Makefile b/codecs/Makefile
index 3fcfd88b1c..f7bde5c501 100644
--- a/codecs/Makefile
+++ b/codecs/Makefile
@@ -56,4 +56,6 @@ $(LIBG722):
 $(if $(filter codec_g722,$(EMBEDDED_MODS)),modules.link,codec_g722.so): $(LIBG722)
 
 codec_resample.o: ASTCFLAGS+=-I$(ASTTOPDIR)/main/libresample/include
-codec_resample.so: LIBS += $(ASTTOPDIR)/main/libresample/libresample.a
+ifneq ($(findstring $(OSARCH), mingw32 cygwin ),)
+  codec_resample.so: LIBS += $(ASTTOPDIR)/main/libresample/libresample.a
+endif
-- 
GitLab