diff options
author | Pieter Willem Jordaan <pieterwjordaanpc@gmail.com> | 2020-02-21 12:13:22 +0200 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-02-27 18:49:48 +0000 |
commit | be6312bf58011d370c1a7a0bca0585fd9fa5bdd9 (patch) | |
tree | 008c704f07cd681af17907a84c907063d86f436c | |
parent | de16a0c030f3b224039e3ee544337f6d5cda803e (diff) |
openh264: fix recipe for text relocation issues on Android >= 5.0 x86 builds
Adding `ENFORCEPIC=Yes` to the recipe fixes the openh264 build to avoid
text relocations on Android >= 5.0 x86. The fix works on openh264 since
version 1.7.0.
Fixes #8
-rw-r--r-- | recipes/openh264.recipe | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes/openh264.recipe b/recipes/openh264.recipe index 7371d7ea..baa8c002 100644 --- a/recipes/openh264.recipe +++ b/recipes/openh264.recipe @@ -44,6 +44,9 @@ class Recipe(recipe.Recipe): make += ' NDKROOT=' + self.config.toolchain_prefix if self.config.target_arch == Architecture.X86: make += ' ARCH=x86' + # According to https://github.com/cisco/openh264/issues/2263 + # to fix text relocations + make += ' ENABLEPIC=Yes' elif self.config.target_arch == Architecture.ARM64: make += ' ARCH=arm64' elif self.config.target_arch == Architecture.X86_64: |