summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-10-19 11:48:20 -0700
committerJohn Stebbins <[email protected]>2016-10-19 11:48:20 -0700
commit33009bbc0ea67ca9bbed0c83148dd82a4f487836 (patch)
treee6da05c7ff1ca620a1f75ce42b51fa9a83d44123
parent1b93f994e3394ff9136a726df16492b8d97d9cd0 (diff)
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.
-rw-r--r--contrib/libvpx/module.defs6
1 files changed, 6 insertions, 0 deletions
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)"