summaryrefslogtreecommitdiff
path: root/recipes/webrtc-audio-processing.recipe
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2018-02-15 16:30:39 +1100
committerMatthew Waters <matthew@centricular.com>2018-03-01 13:35:47 +1100
commitd5df53fcdcd9dc91adea9107679fc386c54828a0 (patch)
tree4145cd0a6285fa774ea3b51f633ecadceb02a510 /recipes/webrtc-audio-processing.recipe
parente98f93b4af328fe5b76b70a9fdf1edc415500119 (diff)
recipes: hack around broken c++ compilation with android NDK r16
g++ cannot ever seem to find it's own crtbegin_so.o and crtend_so.o despite passing valid --sysroot parameters.
Diffstat (limited to 'recipes/webrtc-audio-processing.recipe')
-rw-r--r--recipes/webrtc-audio-processing.recipe6
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/webrtc-audio-processing.recipe b/recipes/webrtc-audio-processing.recipe
index 892b820a..2bae83f4 100644
--- a/recipes/webrtc-audio-processing.recipe
+++ b/recipes/webrtc-audio-processing.recipe
@@ -1,5 +1,7 @@
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
+from cerbero.utils import fix_android_ndk16_cxx
+
class Recipe(recipe.Recipe):
name = 'webrtc-audio-processing'
version = '0.2'
@@ -50,3 +52,7 @@ class Recipe(recipe.Recipe):
# This recipe requires at least Windows Vista
self.append_env['CFLAGS'] = ' -UWINVER -U_WIN32_WINNT -DWINVER=0x0600 -D_WIN32_WINNT=0x0600'
self.append_env['CXXFLAGS'] = self.append_env['CFLAGS']
+
+ def configure (self):
+ fix_android_ndk16_cxx (self.config, os.path.join(self.make_dir, 'webrtc', 'modules', 'audio_processing'))
+ super(recipe.Recipe, self).configure()