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

contrib: build libvpx as PIC as appropriate

parent 2be3a2dc
...@@ -64,8 +64,7 @@ VPX_TARGET := $(VPX_ARCH)-$(VPX_OS)-gcc ...@@ -64,8 +64,7 @@ VPX_TARGET := $(VPX_ARCH)-$(VPX_OS)-gcc
endif endif
endif endif
.vpx: libvpx VPX_CONF := \
cd $< && CROSS=$(VPX_CROSS) ./configure --target=$(VPX_TARGET) \
--enable-runtime-cpu-detect \ --enable-runtime-cpu-detect \
--disable-install-bins \ --disable-install-bins \
--disable-install-srcs \ --disable-install-srcs \
...@@ -73,6 +72,13 @@ endif ...@@ -73,6 +72,13 @@ endif
--disable-install-docs \ --disable-install-docs \
--disable-examples \ --disable-examples \
--disable-vp8-decoder --disable-vp8-decoder
ifndef HAVE_WIN32
VPX_CONF += --enable-pic
endif
.vpx: libvpx
cd $< && CROSS=$(VPX_CROSS) ./configure --target=$(VPX_TARGET) \
$(VPX_CONF)
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