mailr14766 - /1.3/sconstruct


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on September 29, 2011 - 15:31:
Author: bugman
Date: Thu Sep 29 15:31:32 2011
New Revision: 14766

URL: http://svn.gna.org/viewcvs/relax?rev=14766&view=rev
Log:
The C modules are now compiled as universal binaries on Mac OS X.

This inclues the targets i386, x86_64, ppc, and ppc64 by default.


Modified:
    1.3/sconstruct

Modified: 1.3/sconstruct
URL: 
http://svn.gna.org/viewcvs/relax/1.3/sconstruct?rev=14766&r1=14765&r2=14766&view=diff
==============================================================================
--- 1.3/sconstruct (original)
+++ 1.3/sconstruct Thu Sep 29 15:31:32 2011
@@ -507,14 +507,17 @@
         # Get the numpy include path (for numpy/arrayobject.h).
         numpy_path = get_include()
 
+        # Relaxation curve fitting build environment.
+        env = Environment()
+
         # C flags.
         if SYSTEM == 'Windows':
             cflags = '/nologo /I\"' + py_include_minpath + '\" /I\"' + 
numpy_path + '\"'
         else:
             cflags = '-I' + py_include_fullpath + ' -I' + numpy_path
-
-        # Relaxation curve fitting build environment.
-        env = Environment()
+        if env['PLATFORM'] == 'darwin':
+            for arch in ['i386', 'x86_64', 'ppc', 'ppc64']:
+                cflags = '%s -arch %s' % (cflags, arch)
 
         # Python library path.
         libpath = ''




Related Messages


Powered by MHonArc, Updated Fri Sep 30 17:40:02 2011