diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-10-05 15:30:59 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-10-05 19:51:31 +0530 |
commit | 7fdadd87e8a752d37735facb8c8469feadc93871 (patch) | |
tree | 783a2187105107969a74909057f6f375dcb822f2 | |
parent | 54a4e3a10f880f5f0673a763fcbad26ad2b37544 (diff) |
libvpx: Make sure clang++ use libc++
The libvpx configure script forces usage of CXX as the linker but
then doesn't use the CXXFLAGS when calling it. Therefore make sure
the linker flags specify usage of libc++
-rw-r--r-- | recipes/libvpx.recipe | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/libvpx.recipe b/recipes/libvpx.recipe index 0f0b820d..6db38b0b 100644 --- a/recipes/libvpx.recipe +++ b/recipes/libvpx.recipe @@ -53,6 +53,11 @@ class Recipe(recipe.Recipe): arch = 'arm64' self.new_env['LD'] = os.environ.get('CC', 'gcc') + if self.config.platform == Platform.DARWIN: + # make sure the linker uses the correct stdlib when building with + # 10.13 which makes the usage of libstdc++ a hard error. + self.append_env['LDFLAGS'] = '-stdlib=libc++' + if self.config.target_platform == Platform.DARWIN: platform = 'darwin12' elif self.config.target_platform == Platform.IOS: |