diff options
author | Josep Torra <n770galaxy@gmail.com> | 2012-03-11 16:03:51 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2012-03-20 17:19:14 +0100 |
commit | 8b962e093d3002085832f4dc727eeae49eb676cb (patch) | |
tree | e9d7d506ae1ff70cd4ec43d82cc2d7f66c1ca6ff /config/darwin.config | |
parent | 619ce95fd341ccb98650bb598686adcd662e63d0 (diff) |
XCode 3.1.4 compes with gcc 4.0 and 4.2. Using gcc 4.2 instead of the default 4.0 allows build gmp without needing to patch it.
Diffstat (limited to 'config/darwin.config')
-rw-r--r-- | config/darwin.config | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/config/darwin.config b/config/darwin.config index a252acf..4cd7443 100644 --- a/config/darwin.config +++ b/config/darwin.config @@ -24,8 +24,13 @@ elif target_arch == Architecture.PPC: # sudo port install git automake libtool gtk-doc # The following enviorenment variables are needed in order to use the macports # libtoolize and libtool. - os.environ['LIBTOOLIZE'] = "glibtoolize" - os.environ['LIBTOOL'] = "glibtool" + os.environ['LIBTOOLIZE'] = 'glibtoolize' + os.environ['LIBTOOL'] = 'glibtool' + # XCode 3.1.4 comes with two versions of gcc. Using the newest one allows + # build gmp without needing to patch it. + os.environ['CC'] = 'gcc-4.2' + os.environ['CXX'] = 'g++-4.2' + os.environ['CPP'] = 'cpp-4.2' sdk_root = '/Developer/SDKs/MacOSX%s.sdk' % osx_sdk_version sdk='-mmacosx-version-min=%s -isysroot %s' % (osx_sdk_version, sdk_root) |