aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'codecs/Makefile')
-rwxr-xr-xcodecs/Makefile3
1 files changed, 2 insertions, 1 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