aboutsummaryrefslogtreecommitdiffstats
path: root/codecs
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-08 04:13:19 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-11-08 04:13:19 +0000
commitccc2fc8a310b16ad7a978d07ebf40535e6bf3ee9 (patch)
treeac7748259e8c5731376a912004a76e59ab0b1c3d /codecs
parentd0b521d57cacdaccc50268c8415defeeeb6fded2 (diff)
issue #5569 minus lock.h changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@7024 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rwxr-xr-xcodecs/Makefile3
-rwxr-xr-xcodecs/ilbc/Makefile5
-rwxr-xr-xcodecs/lpc10/Makefile5
3 files changed, 10 insertions, 3 deletions
diff --git a/codecs/Makefile b/codecs/Makefile
index edf029219..d1feb8a54 100755
--- a/codecs/Makefile
+++ b/codecs/Makefile
@@ -14,6 +14,8 @@
ifeq (${OSARCH},CYGWIN)
CYGSOLINK=-Wl,--out-implib=lib$@.a -Wl,--export-all-symbols
CYGSOLIB=-L.. -L. -lasterisk.dll
+else
+CFLAGS+=-fPIC
endif
ifneq ($(wildcard g723.1/coder.c),)
@@ -57,7 +59,6 @@ ifneq ($(wildcard ilbc/iLBC_decode.h),)
LIBILBC=ilbc/libilbc.a
endif
-CFLAGS+=-fPIC
LIBGSM=gsm/lib/libgsm.a
LIBGSMT=gsm/lib/libgsm.a
diff --git a/codecs/ilbc/Makefile b/codecs/ilbc/Makefile
index 8bccc4a9a..1540c140f 100755
--- a/codecs/ilbc/Makefile
+++ b/codecs/ilbc/Makefile
@@ -1,5 +1,8 @@
ARCH=$(PROC)
-CFLAGS+=-Wall -fPIC -O3 -funroll-loops
+CFLAGS+=-Wall -O3 -funroll-loops
+ifneq (${OSARCH},CYGWIN)
+CFLAGS += -fPIC
+endif
LIB=libilbc.a
OBJS= anaFilter.o iCBSearch.o packing.o \
diff --git a/codecs/lpc10/Makefile b/codecs/lpc10/Makefile
index 01f7a7b81..b56a59ba4 100755
--- a/codecs/lpc10/Makefile
+++ b/codecs/lpc10/Makefile
@@ -22,7 +22,10 @@ LIB_TARGET_DIR = .
#
WARNINGS = -Wall -Wno-comment -Wno-error
-CFLAGS += $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS) -fPIC
+CFLAGS += $(OPTIMIZE) -I$(LIB_TARGET_DIR) $(WARNINGS)
+ifneq (${OSARCH},CYGWIN)
+CFLAGS += -fPIC
+endif
#CFLAGS+= $(shell if uname -m | grep -q 86; then echo "-mpentium" ; fi)
#fix for PPC processors and ALPHA, And UltraSparc too