diff options
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' |