From: John Stebbins Date: Wed, 19 Oct 2016 18:48:20 +0000 (-0700) Subject: libvpx: fix build failure on ubuntu 16.10 X-Git-Tag: 1.0.0~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33009bbc0ea67ca9bbed0c83148dd82a4f487836;p=handbrake libvpx: fix build failure on ubuntu 16.10 Ubuntu patched gcc to generate PIE executables by default. This means all code is required to be compiled with -fPIC. --- diff --git a/contrib/libvpx/module.defs b/contrib/libvpx/module.defs index 683cd17d0..dd29f5642 100644 --- a/contrib/libvpx/module.defs +++ b/contrib/libvpx/module.defs @@ -35,6 +35,12 @@ ifeq (1,$(BUILD.cross)) endif endif +ifeq (linux,$(BUILD.system)) + ifeq (x86_64,$(BUILD.machine)) + LIBVPX.CONFIGURE.extra += --enable-pic + endif +endif + ifeq (1,$(FEATURE.local_yasm)) LIBVPX.CONFIGURE.env.LOCAL_PATH = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)" LIBVPX.BUILD.env = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)"