summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2020-11-25 15:17:05 +0000
committerMatthew Waters <matthew@centricular.com>2020-12-07 13:35:43 +1100
commit98edefa2161a57b6740164a514489eb20190c566 (patch)
tree3f5a1e25e4add5d4e862d38a9d64f5f9b6cb5c8b /config
parentc13a83bcf826b5d13fd548cf2bf12600231e4359 (diff)
x264: add support for macOS ARM64
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/661>
Diffstat (limited to 'config')
-rw-r--r--config/darwin.config6
1 files changed, 6 insertions, 0 deletions
diff --git a/config/darwin.config b/config/darwin.config
index 601f2c59..6e8210bf 100644
--- a/config/darwin.config
+++ b/config/darwin.config
@@ -111,6 +111,12 @@ env['OBJCXX'] = 'clang++'
# Since 10.10 libstdc++ is deprecated, and might no longer be
# shipped. Make sure we use libc++ instead
env['CXXFLAGS'] += ' -stdlib=libc++ '
+env['AS']= 'as'
+if target_arch in [Architecture.X86, Architecture.X86_64]:
+ env.pop('GAS', None)
+else:
+ env['GAS']= '%s %s %s -fembed-bitcode' % ('gas-preprocessor.pl', env['CC'], env['CFLAGS'])
+
if target_arch != Architecture.UNIVERSAL: