Skip to content

Commit

Permalink
libvpx: fix build failure on ubuntu 16.10
Browse files Browse the repository at this point in the history
Ubuntu patched gcc to generate PIE executables by default.  This means
all code is required to be compiled with -fPIC.
  • Loading branch information
jstebbins committed Oct 19, 2016
1 parent 1b93f99 commit 33009bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/libvpx/module.defs
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 33009bb

Please sign in to comment.