Add osx-old target to target 10.8.
authorCarl Hetherington <cth@carlh.net>
Sun, 16 May 2021 17:38:07 +0000 (19:38 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 18 May 2021 05:37:47 +0000 (07:37 +0200)
cdist

diff --git a/cdist b/cdist
index a062d444756ffdfbb0d78156081a37fe38933ecc..6551b30be37e5f4dc87ca93b842e72f4d1366b52 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -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':