From aec1d5c22f734e1e615ebdf84fdb034bd51255c3 Mon Sep 17 00:00:00 2001
From: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
Date: Thu, 22 May 2008 12:41:03 -0400
Subject: [PATCH] fPIC flag for 64 bitts compilation

---
 src/audio/codecs/Makefile.am | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/audio/codecs/Makefile.am b/src/audio/codecs/Makefile.am
index 7410e8c3be..57504bc6b1 100644
--- a/src/audio/codecs/Makefile.am
+++ b/src/audio/codecs/Makefile.am
@@ -3,6 +3,7 @@ if BUILD_GSM
 GSM_LIB = libcodec_gsm.so
 libcodec_gsm_so_SOURCES = gsmcodec.cpp
 libcodec_gsm_so_CFLAGS = -fPIC -g -Wall
+libcodec_gsm_so_CXXFLAGS = -fPIC -g -Wall
 libcodec_gsm_so_LDFLAGS = -shared -lc -lgsm
 INSTALL_GSM_RULE = install-libcodec_gsm_so
 endif
@@ -11,6 +12,7 @@ if BUILD_SPEEX
 SPEEX_LIB = libcodec_speex.so
 libcodec_speex_so_SOURCES = speexcodec.cpp
 libcodec_speex_so_CFLAGS = -fPIC -g -Wall
+libcodec_speex_so_CXXFLAGS = -fPIC -g -Wall
 libcodec_speex_so_LDFLAGS = -shared -lc -lspeex
 INSTALL_SPEEX_RULE = install-libcodec_speex_so
 endif
@@ -19,6 +21,7 @@ if BUILD_ILBC
 ILBC_LIB = libcodec_ilbc.so
 libcodec_ilbc_so_SOURCES = ilbc.cpp
 libcodec_ilbc_so_CFLAGS = -fPIC -g -Wall
+libcodec_ilbc_so_CXXFLAGS = -fPIC -g -Wall
 libcodec_ilbc_so_LDFLAGS = -shared ilbc/*.o -lc
 INSTALL_ILBC_RULE = install-libcodec_ilbc_so
 SUBDIRS = ilbc
@@ -30,10 +33,12 @@ noinst_HEADERS = audiocodec.h
 
 libcodec_ulaw_so_SOURCES = ulaw.cpp
 libcodec_ulaw_so_CFLAGS = -fPIC -g -Wall
+libcodec_ulaw_so_CXXFLAGS = -fPIC -g -Wall
 libcodec_ulaw_so_LDFLAGS = -shared -lc
 
 libcodec_alaw_so_SOURCES = alaw.cpp
 libcodec_alaw_so_CFLAGS = -fPIC -g -Wall
+libcodec_alaw_so_CXXFLAGS = -fPIC -g -Wall
 libcodec_alaw_so_LDFLAGS = -shared -lc
 
 
-- 
GitLab