[vlc-commits] contrib: build libvpx as PIC as appropriate

Rémi Denis-Courmont git at videolan.org
Wed Aug 3 17:06:44 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug  3 13:13:08 2011 +0300| [1b1d3face5e994c2df172b9cb42abece7f8ec06d] | committer: Rémi Denis-Courmont

contrib: build libvpx as PIC as appropriate

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b1d3face5e994c2df172b9cb42abece7f8ec06d
---

 contrib/src/vpx/rules.mak |   20 +++++++++++++-------
 1 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/contrib/src/vpx/rules.mak b/contrib/src/vpx/rules.mak
index b68ba0e..3cd0df1 100644
--- a/contrib/src/vpx/rules.mak
+++ b/contrib/src/vpx/rules.mak
@@ -64,15 +64,21 @@ VPX_TARGET := $(VPX_ARCH)-$(VPX_OS)-gcc
 endif
 endif
 
+VPX_CONF := \
+	--enable-runtime-cpu-detect \
+	--disable-install-bins \
+	--disable-install-srcs \
+	--disable-install-libs \
+	--disable-install-docs \
+	--disable-examples \
+	--disable-vp8-decoder
+ifndef HAVE_WIN32
+VPX_CONF += --enable-pic
+endif
+
 .vpx: libvpx
 	cd $< && CROSS=$(VPX_CROSS) ./configure --target=$(VPX_TARGET) \
-		--enable-runtime-cpu-detect \
-		--disable-install-bins \
-		--disable-install-srcs \
-		--disable-install-libs \
-		--disable-install-docs \
-		--disable-examples \
-		--disable-vp8-decoder
+		$(VPX_CONF)
 	cd $< && $(MAKE) install
 	rm -Rf -- "$(PREFIX)/include/vpx/"
 	mkdir -p -- "$(PREFIX)/include/vpx/"



More information about the vlc-commits mailing list