[vlc-commits] contrib: build libgsm with -fPIC
Dominique Martinet
git at videolan.org
Mon May 9 11:06:01 CEST 2011
vlc | branch: master | Dominique Martinet <asmadeus at codewreck.org> | Mon May 9 15:34:13 2011 +0900| [36fe749c52637795ebc56df0221d9a6f6cb2a0b2] | committer: Jean-Baptiste Kempf
contrib: build libgsm with -fPIC
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=36fe749c52637795ebc56df0221d9a6f6cb2a0b2
---
extras/contrib/src/contrib-src.mak | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/extras/contrib/src/contrib-src.mak b/extras/contrib/src/contrib-src.mak
index 222ccf5..8910b3f 100644
--- a/extras/contrib/src/contrib-src.mak
+++ b/extras/contrib/src/contrib-src.mak
@@ -2511,6 +2511,7 @@ endif
ifdef HAVE_MACOSX
(cd $@; sed -e 's%-O2%-O2\ $(EXTRA_CFLAGS)\ $(EXTRA_LDFLAGS)%' -e 's%# LDFLAGS =%LDFLAGS = $(EXTRA_LDFLAGS)%' -e 's%gcc%$(CC)%' -i.orig Makefile)
endif
+ (cd $@; sed -i -e 's%-O2%-O2 -fPIC%' Makefile)
.gsm: gsm
(cd $<; $(HOSTCC) make && mkdir -p $(PREFIX)/include/gsm && cp inc/gsm.h $(PREFIX)/include/gsm && cp lib/libgsm.a $(PREFIX)/lib)
More information about the vlc-commits
mailing list