diff options
author | John Stebbins <[email protected]> | 2016-10-19 11:48:20 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-10-19 11:48:20 -0700 |
commit | 33009bbc0ea67ca9bbed0c83148dd82a4f487836 (patch) | |
tree | e6da05c7ff1ca620a1f75ce42b51fa9a83d44123 | |
parent | 1b93f994e3394ff9136a726df16492b8d97d9cd0 (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.defs | 6 |
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)" |