diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-05-16 19:38:07 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-05-18 07:37:47 +0200 |
| commit | 93c80f4139a6d99d6a12d11d5a1617ddb6093ee8 (patch) | |
| tree | cd97b2fa00dd997e8b7f18da59d8ffe00ec6e3f0 | |
| parent | cb71f049e07a86b4eabe5f097d3ea0dd2f212dde (diff) | |
Add osx-old target to target 10.8.
| -rwxr-xr-x | cdist | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -115,6 +115,7 @@ class Config: Option('osx_sdk'), Option('osx_intel_deployment'), Option('osx_arm_deployment'), + Option('osx_old_deployment'), Option('osx_keychain_file'), Option('osx_keychain_password'), Option('apple_id'), @@ -826,7 +827,7 @@ class OSXSingleTarget(OSXTarget): # Environment variables self.set('CFLAGS', '"-I%s/include -I%s/include %s"' % (self.directory, target_enviro, flags)) self.set('CPPFLAGS', '') - self.set('CXXFLAGS', '"-I%s/include -I%s/include %s"' % (self.directory, target_enviro, flags)) + self.set('CXXFLAGS', '"-I%s/include -I%s/include -stdlib=libc++ %s"' % (self.directory, target_enviro, flags)) self.set('LDFLAGS', '"-L%s/lib -L%s/lib %s"' % (self.directory, target_enviro, flags)) self.set('LINKFLAGS', '"-L%s/lib -L%s/lib %s"' % (self.directory, target_enviro, flags)) self.set('PKG_CONFIG_PATH', '%s/lib/pkgconfig:%s/lib/pkgconfig:/usr/lib/pkgconfig' % (self.directory, target_enviro)) @@ -930,6 +931,8 @@ def target_factory(args): target = OSXUniversalTarget(args.work) elif s == 'osx-intel': target = OSXSingleTarget('x86_64', config.get('osx_sdk'), config.get('osx_intel_deployment'), args.work) + elif s == 'osx-old': + target = OSXSingleTarget('x86_64', config.get('osx_sdk'), config.get('osx_old_deployment'), args.work) elif s == 'source': target = SourceTarget() elif s == 'flatpak': |
