From 33009bbc0ea67ca9bbed0c83148dd82a4f487836 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Wed, 19 Oct 2016 11:48:20 -0700 Subject: [PATCH] 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. --- contrib/libvpx/module.defs | 6 ++++++ 1 file changed, 6 insertions(+) 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)" -- 2.40.0