Commit 1b1d3fac authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

contrib: build libvpx as PIC as appropriate

parent 2be3a2dc
...@@ -64,15 +64,21 @@ VPX_TARGET := $(VPX_ARCH)-$(VPX_OS)-gcc ...@@ -64,15 +64,21 @@ VPX_TARGET := $(VPX_ARCH)-$(VPX_OS)-gcc
endif endif
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 .vpx: libvpx
cd $< && CROSS=$(VPX_CROSS) ./configure --target=$(VPX_TARGET) \ cd $< && CROSS=$(VPX_CROSS) ./configure --target=$(VPX_TARGET) \
--enable-runtime-cpu-detect \ $(VPX_CONF)
--disable-install-bins \
--disable-install-srcs \
--disable-install-libs \
--disable-install-docs \
--disable-examples \
--disable-vp8-decoder
cd $< && $(MAKE) install cd $< && $(MAKE) install
rm -Rf -- "$(PREFIX)/include/vpx/" rm -Rf -- "$(PREFIX)/include/vpx/"
mkdir -p -- "$(PREFIX)/include/vpx/" mkdir -p -- "$(PREFIX)/include/vpx/"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment