summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2021-07-13 13:06:27 +1000
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-07-13 06:12:42 +0000
commit84fea3fdff10dbc6cdfcf5bcd1cc16dba14258f7 (patch)
treecdfd66356f7db7fc8bf498d0e20df1eece59de01
parent5d4184924ef27bb2d37a1e6e54a041a057ae70fc (diff)
config/ios: put iphone sdk version minimum into CPPFLAGS
This may be important for anything produced by the C Preprocesser Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/715>
-rw-r--r--config/ios.config10
1 files changed, 6 insertions, 4 deletions
diff --git a/config/ios.config b/config/ios.config
index cddbdcf1..e1a3ce11 100644
--- a/config/ios.config
+++ b/config/ios.config
@@ -117,15 +117,17 @@ env['NM']= 'nm'
env['NMEDIT']= 'nmedit'
env['RANLIB']= 'ranlib'
env['CPPFLAGS'] = '{} -isysroot {} -isystem {} '.format(arch_cflags, sysroot, includedir)
+if ios_platform == 'iPhoneOS':
+ env['CPPFLAGS'] += '-miphoneos-version-min={} '.format(ios_min_version)
+else:
+ env['CPPFLAGS'] += '-mios-simulator-version-min={} '.format(ios_min_version)
env['CFLAGS'] = env['CPPFLAGS']
env['LDFLAGS'] = env['CPPFLAGS'] + ' -L{} '.format(lib_dir)
if ios_platform == 'iPhoneOS':
- env['CFLAGS'] += '-miphoneos-version-min={} '.format(ios_min_version)
- env['LDFLAGS'] += '-miphoneos-version-min={0} -Wl,-iphoneos_version_min,{0} '.format(ios_min_version)
+ env['LDFLAGS'] += '-Wl,-iphoneos_version_min,{0} '.format(ios_min_version)
env['CCASFLAGS'] = '-miphoneos-version-min={} '.format(ios_min_version)
else:
- env['CFLAGS'] += '-mios-simulator-version-min={} '.format(ios_min_version)
- env['LDFLAGS'] += '-mios-simulator-version-min={0} -Wl,-ios_simulator_version_min,{0} '.format(ios_min_version)
+ env['LDFLAGS'] += '-Wl,-ios_simulator_version_min,{0} '.format(ios_min_version)
env['CFLAGS'] += extra_cflags
env['LDFLAGS'] += extra_ldflags
env['OBJCFLAGS'] = env['CFLAGS']