summaryrefslogtreecommitdiff
path: root/config/ios.config
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-05-22 06:25:19 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-05-22 12:10:49 +0530
commit8d9156b33e5d01c235690533194de21fab150715 (patch)
treecf9523a6e298b9e8084d35a96cb95725450288d2 /config/ios.config
parent65bd49b36080a933712a5b411b86b19a0be0423c (diff)
cerbero: Don't use -fembed-code for iOS
It's incompatible with -Wl,-dead_strip_dylibs (the macOS equivalent of --as-needed) and -Wl,-bundle. The former can be disabled but the latter is important for shared modules. Revert this once we know how to handle shared modules and as-needed for iOS. Perhaps we should *only* build statically for iOS?
Diffstat (limited to 'config/ios.config')
-rw-r--r--config/ios.config6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/ios.config b/config/ios.config
index c3a1cd17..31db8169 100644
--- a/config/ios.config
+++ b/config/ios.config
@@ -104,9 +104,9 @@ os.environ['CPPFLAGS'] = '{} -isysroot {} '.format(arch_cflags, sysroot)
os.environ['CFLAGS'] = os.environ['CPPFLAGS']
os.environ['LDFLAGS'] = os.environ['CPPFLAGS']
if ios_platform == 'iPhoneOS':
- os.environ['CFLAGS'] += '-miphoneos-version-min={} -fembed-bitcode '.format(ios_min_version)
- os.environ['LDFLAGS'] += '-miphoneos-version-min={0} -Wl,-iphoneos_version_min,{0} -fembed-bitcode '.format(ios_min_version)
- os.environ['CCASFLAGS'] = '-miphoneos-version-min={} -fembed-bitcode '.format(ios_min_version)
+ os.environ['CFLAGS'] += '-miphoneos-version-min={} '.format(ios_min_version)
+ os.environ['LDFLAGS'] += '-miphoneos-version-min={0} -Wl,-iphoneos_version_min,{0} '.format(ios_min_version)
+ os.environ['CCASFLAGS'] = '-miphoneos-version-min={} '.format(ios_min_version)
else:
os.environ['CFLAGS'] += '-mios-simulator-version-min={} '.format(ios_min_version)
os.environ['LDFLAGS'] += '-mios-simulator-version-min={0} -Wl,-ios_simulator_version_min,{0} '.format(ios_min_version)