From 84fea3fdff10dbc6cdfcf5bcd1cc16dba14258f7 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Tue, 13 Jul 2021 13:06:27 +1000 Subject: config/ios: put iphone sdk version minimum into CPPFLAGS This may be important for anything produced by the C Preprocesser Part-of: --- config/ios.config | 10 ++++++---- 1 file 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'] -- cgit v1.2.3