diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-06-16 15:55:21 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-06-16 15:55:21 +0100 |
| commit | b02494f69f19bc5ecee297f6c95d9f317b5fd6ca (patch) | |
| tree | bf88a3388ee0cc5f12e3c64b3a9e307f32888b87 | |
| parent | efd0caca229090c52b0d22b6b2c26caa6f524b8e (diff) | |
Try to build universal binaries on OS X.
| -rwxr-xr-x | cdist | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -259,14 +259,14 @@ class RemoteEnvironment(Environment): for g in glob.glob('%s/*' % self.host_mount_dir): rmtree(g) - sysroot = '-isysroot %s/MacOSX%s.sdk' % (OSX_SDK_PREFIX, self.osx_sdk) + flags = '-isysroot %s/MacOSX%s.sdk -arch i386 -arch x86_64' % (OSX_SDK_PREFIX, self.osx_sdk) enviro = '%s/%s' % (OSX_ENVIRONMENT_PREFIX, self.osx_sdk) # Environment variables - self.set('CCFLAGS', '"-I%s/include -I%s/include %s"' % (self.dir_on_host, enviro, sysroot)) - self.set('CXXFLAGS', '"-I%s/include -I%s/include %s"' % (self.dir_on_host, enviro, sysroot)) - self.set('LDFLAGS', '"-L%s/lib -L%s/lib %s"' % (self.dir_on_host, enviro, sysroot)) - self.set('LINKFLAGS', '"-L%s/lib -L%s/lib %s"' % (self.dir_on_host, enviro, sysroot)) + self.set('CCFLAGS', '"-I%s/include -I%s/include %s"' % (self.dir_on_host, enviro, flags)) + self.set('CXXFLAGS', '"-I%s/include -I%s/include %s"' % (self.dir_on_host, enviro, flags)) + self.set('LDFLAGS', '"-L%s/lib -L%s/lib %s"' % (self.dir_on_host, enviro, flags)) + self.set('LINKFLAGS', '"-L%s/lib -L%s/lib %s"' % (self.dir_on_host, enviro, flags)) self.set('PKG_CONFIG_PATH', '%s/lib/pkgconfig:%s/lib/pkgconfig' % (self.dir_on_host, enviro)) self.set('PATH', '$PATH:/usr/bin:/sbin:/usr/local/bin:%s/bin' % enviro) self.set('MACOSX_DEPLOYMENT_TARGET', self.osx_sdk) |
