[vlc-devel] [PATCH 2/2] contrib: build libgsm with -fPIC
Dominique Martinet
asmadeus at codewreck.org
Mon May 9 08:34:13 CEST 2011
---
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 503e310..34e5532 100644
--- a/extras/contrib/src/contrib-src.mak
+++ b/extras/contrib/src/contrib-src.mak
@@ -2528,6 +2528,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)
--
1.7.3.2
More information about the vlc-devel
mailing list