diff options
author | Matthew Waters <matthew@centricular.com> | 2018-02-15 16:26:07 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2018-03-01 13:35:47 +1100 |
commit | 4332026d3e714f8e3e11c16d17e0785254449e81 (patch) | |
tree | 38596d19864cca0e49e08e959084a7734be6e3b5 /recipes/gst-plugins-base-1.0.recipe | |
parent | 4bd4abf3df0a09557d4978e383c727f1382c7822 (diff) |
recipes/gst-plugins-base: disable mmap usage on lower android targets
Fixes build with NDR r16
Diffstat (limited to 'recipes/gst-plugins-base-1.0.recipe')
-rw-r--r-- | recipes/gst-plugins-base-1.0.recipe | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes/gst-plugins-base-1.0.recipe b/recipes/gst-plugins-base-1.0.recipe index 500a9ee3..88d5baab 100644 --- a/recipes/gst-plugins-base-1.0.recipe +++ b/recipes/gst-plugins-base-1.0.recipe @@ -251,3 +251,12 @@ class Recipe(custom.GStreamer): if self.config.variants.nodebug: self.append_env['CFLAGS'] += ' -DGST_LEVEL_MAX=GST_LEVEL_FIXME' + + if self.config.target_platform == Platform.ANDROID: + v = DistroVersion.get_android_api_version(self.config.target_distro_version) + if self.config.target_arch in [Architecture.ARM, Architecture.ARMv7, Architecture.X86] and v < 21: + # FIXME: HACK to make projects compile with NDK 16 + # we fail to compile with -D_FILE_OFFSET_BITS=64 + # because we don't use clang and we use a platform < 21 (Lollipop) + # See $NDK_ROOT/sysroot/usr/include/sys/mman.h as one example + self.new_env['ac_cv_func_mmap'] = 'no' |