diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-10-18 13:59:09 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-10-18 13:59:43 +0530 |
commit | 3dc9ea77daca38dd3c873a921352133718fb253f (patch) | |
tree | ff1e3c166cbf6cfc8083bd461d9f1019bc7551a3 | |
parent | 3cffdfd74a812c8dd8c127998589abcd06b21de4 (diff) |
config/ios: Don't forget to add arch flags to CFLAGS
-rw-r--r-- | config/ios.config | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/ios.config b/config/ios.config index 38fd3814..eba4acbd 100644 --- a/config/ios.config +++ b/config/ios.config @@ -92,13 +92,14 @@ os.environ['AR']= 'ar' os.environ['NM']= 'nm' os.environ['NMEDIT']= 'nmedit' os.environ['RANLIB']= 'ranlib' +os.environ['CFLAGS'] = '{} '.format(arch_cflags) os.environ['CPPFLAGS'] = '{} -isysroot {} '.format(arch_cflags, sysroot) os.environ['LDFLAGS'] = os.environ['CPPFLAGS'] if ios_platform == 'iPhoneOS': - os.environ['CFLAGS'] = '-miphoneos-version-min={} '.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) else: - os.environ['CFLAGS'] = '-mios-simulator-version-min={} '.format(ios_min_version) + 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) os.environ['CFLAGS'] += extra_cflags os.environ['LDFLAGS'] += '-Wl,-undefined,error -Wl,-headerpad_max_install_names ' + extra_ldflags |