]> granicus.if.org Git - handbrake/commitdiff
libvpx: fix build failure on ubuntu 16.10
authorJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 19 Oct 2016 18:48:20 +0000 (11:48 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Wed, 19 Oct 2016 18:48:20 +0000 (11:48 -0700)
Ubuntu patched gcc to generate PIE executables by default.  This means
all code is required to be compiled with -fPIC.

contrib/libvpx/module.defs

index 683cd17d01fb8f17617df61969214a624bff7205..dd29f564258db3f0bec4cb5909effbcffb959c3c 100644 (file)
@@ -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)"